Documentation ¶
Index ¶
- type RedisClusterCache
- func (r *RedisClusterCache) Close()
- func (r *RedisClusterCache) Flush() error
- func (r *RedisClusterCache) Insert(key string, value []byte, ttl time.Duration) error
- func (r *RedisClusterCache) Len() uint
- func (r *RedisClusterCache) Retrieve(key string) ([]byte, error)
- func (r *RedisClusterCache) Size() uint64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisClusterCache ¶
type RedisClusterCache struct {
// contains filtered or unexported fields
}
RedisClusterCache stores our Redis Cluster
func New ¶
func New(config radix.RedisConfig) (*RedisClusterCache, error)
Creates a new Redis cache instance, connecting to the given server and AUTHing with the provided password. If the password is an empty string, the AUTH command will not be run.
func (*RedisClusterCache) Close ¶
func (r *RedisClusterCache) Close()
func (*RedisClusterCache) Flush ¶
func (r *RedisClusterCache) Flush() error
func (*RedisClusterCache) Len ¶
func (r *RedisClusterCache) Len() uint
func (*RedisClusterCache) Retrieve ¶
func (r *RedisClusterCache) Retrieve(key string) ([]byte, error)
func (*RedisClusterCache) Size ¶
func (r *RedisClusterCache) Size() uint64
Click to show internal directories.
Click to hide internal directories.