Files
huangguo_server/common/cachev2/proto.go
T
rootandClaude Opus 5 8679200f41 Initial commit
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-15 13:57:10 +08:00

15 lines
403 B
Go

package cachev2
import "time"
// Driver 缓存驱动接口定义
type Driver interface {
IsExist(key string) bool
Get(key string) (*string, error)
Set(key string, value interface{}, expire time.Duration) error
SetNX(key string, value interface{}, expiration time.Duration) (bool, error)
ScanKeys(match string) (keys []string, err error)
Del(keys ...string) (n int64, err error)
Close() error
}