moving stuff around, stubbing interfaces

This commit is contained in:
tsmethurst
2021-03-09 17:03:40 +01:00
parent 338af00e7b
commit 9a79d176c9
11 changed files with 114 additions and 67 deletions

View File

@ -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)
}