SetAsync implements Cache.
(key string, value []byte, ttl time.Duration)
| 71 | |
| 72 | // SetAsync implements Cache. |
| 73 | func (s *SnappyCache) SetAsync(key string, value []byte, ttl time.Duration) { |
| 74 | s.next.SetAsync(key, snappy.Encode(nil, value), ttl) |
| 75 | } |
| 76 | |
| 77 | // SetMultiAsync implements Cache. |
| 78 | func (s *SnappyCache) SetMultiAsync(data map[string][]byte, ttl time.Duration) { |