sms_tool
This commit is contained in:
12
sms_tool/cache_model.go
Normal file
12
sms_tool/cache_model.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package sms_tool
|
||||
|
||||
import (
|
||||
"context"
|
||||
"time"
|
||||
)
|
||||
|
||||
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)
|
||||
}
|
Reference in New Issue
Block a user