summaryrefslogtreecommitdiff
path: root/internal/cache/cache.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/cache/cache.go')
-rw-r--r--internal/cache/cache.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/cache/cache.go b/internal/cache/cache.go
index 4bef60642..ed13aded4 100644
--- a/internal/cache/cache.go
+++ b/internal/cache/cache.go
@@ -17,3 +17,9 @@
*/
package cache
+
+// Cache defines an in-memory cache that is safe to be wiped when the application is restarted
+type Cache interface {
+ Store(k string, v interface{}) error
+ Fetch(k string) (interface{}, error)
+}