1
0
mirror of https://github.com/charlienet/go-mixed.git synced 2025-07-17 16:12:42 +08:00
Files
go-mixed/cache/mem.go
2023-08-25 15:31:00 +08:00

11 lines
183 B
Go

package cache
import "time"
type MemCache interface {
Get(key string) ([]byte, bool)
Set(key string, b []byte, expire time.Duration) error
Delete(key ...string) error
Clear()
}