Documentation
¶
Index ¶
- type RedisCache
- func (c *RedisCache) CountKeys(ctx context.Context) (int, error)
- func (c *RedisCache) Delete(ctx context.Context, key string) error
- func (c *RedisCache) Get(ctx context.Context, key string) (string, error)
- func (c *RedisCache) Set(ctx context.Context, key string, value interface{}, ttl time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisCache ¶
type RedisCache struct {
// contains filtered or unexported fields
}
func NewRedisCache ¶
func NewRedisCache(connUrl string, db int) (*RedisCache, error)
Click to show internal directories.
Click to hide internal directories.