| 26 | } |
| 27 | |
| 28 | type Cacher interface { |
| 29 | Set(ctx context.Context, ns, key, value string, expiration ...time.Duration) error |
| 30 | Get(ctx context.Context, ns, key string) (string, bool, error) |
| 31 | Exists(ctx context.Context, ns, key string) (bool, error) |
| 32 | Delete(ctx context.Context, ns, key string) error |
| 33 | Close(ctx context.Context) error |
| 34 | } |
| 35 | |
| 36 | func NewStoreWithCache(cache Cacher, opts ...StoreOption) Storer { |
| 37 | s := &storeImpl{ |
no outgoing calls
no test coverage detected