feat: add memory cache

This commit is contained in:
zhaoyupeng
2025-07-15 18:40:13 +08:00
parent 127c57dc3a
commit 868b959c6f
7 changed files with 239 additions and 29 deletions

View File

@ -62,6 +62,7 @@ var (
marshaler func(data any) ([]byte, error) = json.Marshal
unmarshaler func(data []byte, model any) error = json.Unmarshal
ErrorKeyNotFound = errors.New("key not found")
ErrorStoreFailed = errors.New("store failed")
Default Cache
)