c5_labsci/zciyon/redis.go
2026-01-27 00:52:00 +08:00

11 lines
264 B
Go

package zciyon
type CiyRedis interface {
Connect(con string) error
Disconnect() error
Set(key string, value any, expiration ...int) error
Get(key string) (any, error)
Receive(key string, fn func(data []byte)) error //接收数据更新
IsConnected() bool
}