Documentation ¶
Index ¶
- Variables
- func Cache() cago.Component
- func Default() cache2.Cache
- func IsNil(err error) bool
- func NewWithConfig(ctx context.Context, cfg *Config, opts ...cache2.Option) (cache2.Cache, error)
- type Config
- type CtxCache
- func (c *CtxCache) Del(key string) error
- func (c *CtxCache) Get(key string, opts ...cache2.Option) cache2.Value
- func (c *CtxCache) GetOrSet(key string, set func() (interface{}, error), opts ...cache2.Option) cache2.Value
- func (c *CtxCache) Has(key string) (bool, error)
- func (c *CtxCache) Set(key string, val interface{}, opts ...cache2.Option) cache2.Value
- type Type
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Expiration = cache2.Expiration WithDepend = cache2.WithDepend )
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.