summaryrefslogtreecommitdiff
path: root/pkg/cache/interface.go
diff options
context:
space:
mode:
authorGrailFinder <wohilas@gmail.com>2024-04-28 07:03:36 +0300
committerGrailFinder <wohilas@gmail.com>2024-04-28 07:03:36 +0300
commit8d66ec58e2256412a2fd50ad9e651c09af1ea8cc (patch)
tree23ad5c78ba2b2da32628e9004fe932e6fa63e26b /pkg/cache/interface.go
parentb33be53ea9c0be523988a9412fd8e3f6a24782b3 (diff)
Feat: auth middleware; login [wip]
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)
+}