This commit is contained in:
lzh
2025-06-18 17:37:21 +08:00
parent 695dcf3c49
commit e2d9685db3
3 changed files with 17 additions and 28 deletions

View File

@@ -9,4 +9,5 @@ type ICacheAdapter interface {
Get(ctx context.Context, key string) (value interface{}, err error)
Set(ctx context.Context, key string, value interface{}, expire time.Duration) (err error)
Del(ctx context.Context, key string) (err error)
SetNX(ctx context.Context, key string, value interface{}, expire time.Duration) (ok bool, err error)
}