Documentation
¶
Overview ¶
Package knife 提供了 context.Context 上的缓存。
Index ¶
- Variables
- func Copy(src context.Context, keys ...string) (context.Context, error)
- func Delete(ctx context.Context, key string)
- func Fetch(ctx context.Context, key string, out interface{}) (bool, error)
- func Get(ctx context.Context, key string) (interface{}, bool)
- func New(ctx context.Context) (dst context.Context, cached bool)
- func Range(ctx context.Context, f func(key, value interface{}) bool)
- func Set(ctx context.Context, key string, val interface{}) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUninitialized = errors.New("knife uninitialized")
ErrUninitialized context.Context 对象未初始化。
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.