Set adds a value to the cache with the default TTL.
(ctx context.Context, key string, value any)
| 11 | type Interface interface { |
| 12 | // Set adds a value to the cache with the default TTL. |
| 13 | Set(ctx context.Context, key string, value any) |
| 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) |
no outgoing calls