fix: fix default_adapter.Get()

This commit is contained in:
weloe
2023-08-10 21:15:32 +08:00
parent 097d1b9445
commit a9aa15db0c
2 changed files with 3 additions and 5 deletions

View File

@@ -18,7 +18,8 @@ type Adapter interface {
UpdateStrTimeout(key string, timeout int64) error
// Get returns interface{}
// If serializer != nil, need to input reflect.Type, used to serializer to deserialize
// If serializer != nil, need to input reflect.Type, used to serializer to deserialize,
// if ( serializer == nil || t == nil || len(t) == 0 ), returns value directly.
Get(key string, t ...reflect.Type) interface{}
// Set store interface{}
Set(key string, value interface{}, timeout int64) error