Documentation
¶
Index ¶
- Variables
- type Cache
- func (c Cache) Add(cx context.Context, key string, value []byte) error
- func (c Cache) Delete(cx context.Context, key string)
- func (c Cache) Get(cx context.Context, key string) (val []byte, found bool)
- func (c Cache) Replace(cx context.Context, key string, value []byte) error
- func (c Cache) Set(cx context.Context, key string, val []byte)
- func (c Cache) SetWithDuration(cx context.Context, key string, val []byte, expiration time.Duration)
- type Option
Constants ¶
This section is empty.
Variables ¶
View Source
var NOEXPIRE = time.Duration(0)
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.