Get retrieves a value from the cache using a given key. Parameters: - ctx: The context for managing the request lifecycle. - key: The cache key to fetch the value. - data: The variable to store the fetched data. Returns an error if the key does not exist or retrieval fails.
(ctx context.Context, key string, data interface{})
| 45 | // - data: The variable to store the fetched data. |
| 46 | // Returns an error if the key does not exist or retrieval fails. |
| 47 | Get(ctx context.Context, key string, data interface{}) error |
| 48 | |
| 49 | // Delete removes a value from the cache based on the provided key. |
| 50 | // Parameters: |
no outgoing calls