Data returns a copy of all key-value pairs in the cache as map type. Note that this function may lead lots of memory usage, you can implement this function if necessary.
(ctx context.Context)
| 102 | // Note that this function may lead lots of memory usage, you can implement this function |
| 103 | // if necessary. |
| 104 | Data(ctx context.Context) (data map[any]any, err error) |
| 105 | |
| 106 | // Keys returns all keys in the cache as slice. |
| 107 | Keys(ctx context.Context) (keys []any, err error) |
no outgoing calls