mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-26 17:41:57 +08:00
Fix: failed unit test / Feat: support TTL in redis cache
This commit is contained in:
2
pkg/cache/memo.go
vendored
2
pkg/cache/memo.go
vendored
@@ -15,7 +15,7 @@ func NewMemoStore() *MemoStore {
|
||||
}
|
||||
|
||||
// Set 存储值
|
||||
func (store *MemoStore) Set(key string, value interface{}) error {
|
||||
func (store *MemoStore) Set(key string, value interface{}, ttl int) error {
|
||||
store.Store.Store(key, value)
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user