Set stores a key and value into a cache.
(ctx context.Context, key string, value []byte, ttl time.Duration)
| 45 | |
| 46 | // Set stores a key and value into a cache. |
| 47 | Set(ctx context.Context, key string, value []byte, ttl time.Duration) error |
| 48 | |
| 49 | // Add stores a key and value into a cache only if it does not already exist. If the |
| 50 | // item was not stored because an entry already exists in the cache, ErrNotStored will |
no outgoing calls