rediscache

package
v0.9.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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 NewCache

func NewCache(redis redis.Redis) *RedisCache

func NewTTLCache

func NewTTLCache(redis redis.Redis, ttl time.Duration) *RedisCache

func (*RedisCache) Delete

func (c *RedisCache) Delete(k interface{}) error

func (*RedisCache) Get

func (c *RedisCache) Get(k interface{}) (interface{}, error)

func (*RedisCache) Put

func (c *RedisCache) Put(k interface{}, v interface{}) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL