feat: 增加空缓存实现的支持

This commit is contained in:
2026-01-05 09:54:02 +08:00
parent 1fcb129079
commit 1fb1215a9c
6 changed files with 66 additions and 18 deletions

View File

@@ -18,14 +18,10 @@ import (
)
var (
GocacheClient = &Gocache{}
GocacheClient cacheAbstract.ICache = &Gocache{}
)
// Gocache 基于gocache的内存缓存
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 16:51 2024/6/14
type Gocache struct{}
func (g *Gocache) Exist(ctx context.Context, cacheInstanceFlag string, key string) (bool, error) {