1
0
mirror of https://github.com/charlienet/go-mixed.git synced 2025-07-18 08:32:40 +08:00
This commit is contained in:
2023-08-25 15:31:00 +08:00
parent 04aecd4abc
commit b0a97978d8
58 changed files with 1330 additions and 476 deletions

5
cache/mem.go vendored
View File

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