Initial commit

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-09-15 13:57:10 +08:00
co-authored by Claude Opus 5
commit 8679200f41
1897 changed files with 257900 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
package cachev2
import "time"
// Driver 缓存驱动接口定义
type Driver interface {
IsExist(key string) bool
Get(key string) (*string, error)
Set(key string, value interface{}, expire time.Duration) error
SetNX(key string, value interface{}, expiration time.Duration) (bool, error)
ScanKeys(match string) (keys []string, err error)
Del(keys ...string) (n int64, err error)
Close() error
}