File: cache.go

package info (click to toggle)
golang-github-twin-g8 3.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 192 kB
  • sloc: makefile: 2
file content (13 lines) | stat: -rw-r--r-- 251 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
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)