SetWithTTL adds a value to the cache with a custom TTL.
(ctx context.Context, key string, value any, ttl time.Duration)
| 14 | |
| 15 | // SetWithTTL adds a value to the cache with a custom TTL. |
| 16 | SetWithTTL(ctx context.Context, key string, value any, ttl time.Duration) |
| 17 | |
| 18 | // Get retrieves a value from the cache. |
| 19 | Get(ctx context.Context, key string) (any, bool) |
no outgoing calls