Documentation ¶
Index ¶
- func NewRedisCache() cache.Cache
- type Cache
- func (c *Cache) Delete(ctx context.Context, key string) error
- func (c *Cache) Get(ctx context.Context, key string) (interface{}, error)
- func (c *Cache) GetClient() interface{}
- func (c *Cache) GetMulti(ctx context.Context, keys []string) ([]interface{}, error)
- func (c *Cache) Put(ctx context.Context, key string, val interface{}, timeout time.Duration) error
- func (c *Cache) Start(config string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRedisCache ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.