This commit is contained in:
lzh
2025-06-18 16:31:10 +08:00
parent d4bc04dbe5
commit 9a27e529eb
8 changed files with 720 additions and 7 deletions

12
sms_tool/cache_model.go Normal file
View 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)
}