Adding upstream version 3.0.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
4199417ac3
commit
8274b1bf1b
21 changed files with 2147 additions and 0 deletions
13
cache.go
Normal file
13
cache.go
Normal file
|
@ -0,0 +1,13 @@
|
|||
package g8
|
||||
|
||||
import (
|
||||
"github.com/TwiN/gocache/v2"
|
||||
)
|
||||
|
||||
type Cache interface {
|
||||
Get(key string) (value any, exists bool)
|
||||
Set(key string, value any)
|
||||
}
|
||||
|
||||
// Make sure that gocache.Cache is compatible with the interface
|
||||
var _ Cache = (*gocache.Cache)(nil)
|
Loading…
Add table
Add a link
Reference in a new issue