Documentation
¶
Index ¶
- Variables
- func Scan(b []byte, v interface{}) error
- func ScanSlice(data []string, slice interface{}) error
- type Cache
- func (mc *Cache) Exists(ctx context.Context, key string) (bool, error)
- func (mc *Cache) Get(ctx context.Context, key string) (string, error)
- func (mc *Cache) MGet(ctx context.Context, keys ...string) ([]any, error)
- func (mc *Cache) MGetAndScan(ctx context.Context, dst any, keys ...string) error
- func (mc *Cache) Set(ctx context.Context, key string, data any, expiration time.Duration) error
- func (mc *Cache) SetNX(ctx context.Context, key string, data any, expiration time.Duration) error
- type StoreType
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Nil = errors.New("memory cache: nil")
)
*
@author : Jerbe - The porter from Earth @time : 2023/9/8 22:06 @describe :
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.