diff --git a/cacher.go b/cacher.go index 52a0e58..4818111 100644 --- a/cacher.go +++ b/cacher.go @@ -28,6 +28,13 @@ type SimpleCacher interface { // ContextCacher interface. type ContextCacher interface { SimpleCacher + // WithContext and clone new cacher + WithContext(ctx context.Context) ContextCacher +} + +// ContextOpCacher interface. +type ContextOpCacher interface { + SimpleCacher // HasWithCtx basic operation HasWithCtx(ctx context.Context, key string) bool