| 1 |
package g8 |
| 2 |
|
| 3 |
import ( |
| 4 |
"github.com/TwiN/gocache/v2" |
| 5 |
) |
| 6 |
|
| 7 |
type Cache interface { |
| 8 |
Get(key string) (value any, exists bool) |
| 9 |
Set(key string, value any) |
| 10 |
} |
| 11 |
|
| 12 |
// Make sure that gocache.Cache is compatible with the interface |
| 13 |
var _ Cache = (*gocache.Cache)(nil) |