From 8d66ec58e2256412a2fd50ad9e651c09af1ea8cc Mon Sep 17 00:00:00 2001 From: GrailFinder Date: Sun, 28 Apr 2024 07:03:36 +0300 Subject: Feat: auth middleware; login [wip] --- pkg/cache/interface.go | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 pkg/cache/interface.go (limited to 'pkg/cache/interface.go') 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) +} -- cgit v1.2.3