mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 06:12:25 -05:00
moving stuff around, stubbing interfaces
This commit is contained in:
parent
338af00e7b
commit
9a79d176c9
11 changed files with 114 additions and 67 deletions
6
internal/cache/cache.go
vendored
6
internal/cache/cache.go
vendored
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue