summaryrefslogtreecommitdiff
path: root/pkg/cache/interface.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/cache/interface.go')
-rw-r--r--pkg/cache/interface.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/pkg/cache/interface.go b/pkg/cache/interface.go
new file mode 100644
index 0000000..606f50f
--- /dev/null
+++ b/pkg/cache/interface.go
@@ -0,0 +1,9 @@
+package cache
+
+type Cache interface {
+ Get(key string) ([]byte, error)
+ Set(key string, value []byte)
+ Expire(key string, exp int64)
+ GetAll() (resp map[string][]byte)
+ RemoveKey(key string)
+}