Put stores the value under the key. Any existing value is overwritten. If ttl is given, the cache automatically forgets the value after the duration. If ttl is zero then it is never automatically forgotten.
(ctx context.Context, key string, value []byte, ttl time.Duration)
| 13 | // ttl is given, the cache automatically forgets the value after the |
| 14 | // duration. If ttl is zero then it is never automatically forgotten. |
| 15 | Put(ctx context.Context, key string, value []byte, ttl time.Duration) error |
| 16 | |
| 17 | // Get returns the value stored under the key and its remaining ttl. If |
| 18 | // there is no value stored, ErrNotFound is returned. If the ttl is zero, |
no outgoing calls