1
0
Fork 0
golang-github-twin-g8/cache.go
Daniel Baumann 8274b1bf1b
Adding upstream version 3.0.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2025-05-16 22:32:21 +02:00

13 lines
251 B
Go

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)