mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-04-19 11:36:57 +00:00
make mem cache an interface and inject
This commit is contained in:
parent
0bc38b668f
commit
f35c4d0f66
3 changed files with 23 additions and 18 deletions
1
server/cache/interface.go
vendored
1
server/cache/interface.go
vendored
|
@ -5,4 +5,5 @@ import "time"
|
|||
type SetGetKey interface {
|
||||
Set(key string, value interface{}, ttl time.Duration) error
|
||||
Get(key string) (interface{}, bool)
|
||||
Remove(key string)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue