Set stores a value in the cache with a specified time-to-live (TTL). Parameters: - ctx: The context for managing the request lifecycle. - key: The cache key under which the value will be stored. - value: The value to be stored in the cache. - ttl: The duration the value should be retained in the cac
(ctx context.Context, key string, value interface{}, ttl time.Duration)
| 37 | // - ttl: The duration the value should be retained in the cache. |
| 38 | // Returns an error if the operation fails. |
| 39 | Set(ctx context.Context, key string, value interface{}, ttl time.Duration) error |
| 40 | |
| 41 | // Get retrieves a value from the cache using a given key. |
| 42 | // Parameters: |
no outgoing calls