cache

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2019 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisClient

type RedisClient struct {
	// contains filtered or unexported fields
}

func NewRedisClient

func NewRedisClient(network string, address string, password string, writeTimeout time.Duration, readTimeout time.Duration,
	connectTimeout time.Duration, db int,
) *RedisClient

func (*RedisClient) DeleteKey

func (c *RedisClient) DeleteKey(key string) bool

func (*RedisClient) Expire

func (c *RedisClient) Expire(key string, ttl time.Duration) bool

func (*RedisClient) OpsMapDel

func (c *RedisClient) OpsMapDel(key string, k string) bool

func (*RedisClient) OpsMapGet

func (c *RedisClient) OpsMapGet(key string, k string) interface{}

func (*RedisClient) OpsMapPut

func (c *RedisClient) OpsMapPut(key string, k string, value interface{}) bool

func (*RedisClient) OpsValueGet

func (c *RedisClient) OpsValueGet(key string) interface{}

func (*RedisClient) OpsValueSet

func (c *RedisClient) OpsValueSet(key string, value interface{}, ttl time.Duration) bool

Jump to

Keyboard shortcuts

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