Add stores a key and value into a cache only if it does not already exist. If the item was not stored because an entry already exists in the cache, ErrNotStored will be returned.
(ctx context.Context, key string, value []byte, ttl time.Duration)
| 50 | // item was not stored because an entry already exists in the cache, ErrNotStored will |
| 51 | // be returned. |
| 52 | Add(ctx context.Context, key string, value []byte, ttl time.Duration) error |
| 53 | |
| 54 | // Delete deletes a key from a cache. |
| 55 | Delete(ctx context.Context, key string) error |
no outgoing calls