diff options
author | GrailFinder <wohilas@gmail.com> | 2024-04-28 07:03:36 +0300 |
---|---|---|
committer | GrailFinder <wohilas@gmail.com> | 2024-04-28 07:03:36 +0300 |
commit | 8d66ec58e2256412a2fd50ad9e651c09af1ea8cc (patch) | |
tree | 23ad5c78ba2b2da32628e9004fe932e6fa63e26b /pkg/cache/interface.go | |
parent | b33be53ea9c0be523988a9412fd8e3f6a24782b3 (diff) |
Feat: auth middleware; login [wip]
Diffstat (limited to 'pkg/cache/interface.go')
-rw-r--r-- | pkg/cache/interface.go | 9 |
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) +} |