redistools

package
v0.0.0-...-1710408 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisDataStore

type RedisDataStore struct {
	RedisHost string
	RedisDB   string
	RedisPwd  string
	TimeOut   int64
	RedisPool *redis.Pool
}

func (*RedisDataStore) Get

func (r *RedisDataStore) Get(k string) (interface{}, error)

func (*RedisDataStore) HGet

func (r *RedisDataStore) HGet(f, k string) (interface{}, error)

func (*RedisDataStore) HGetAll

func (r *RedisDataStore) HGetAll(f string) (interface{}, error)

func (*RedisDataStore) HSet

func (r *RedisDataStore) HSet(f, k, v string) error

func (*RedisDataStore) HSetEx

func (r *RedisDataStore) HSetEx(f, k string, v interface{}, ex int64) error

func (*RedisDataStore) NewPool

func (r *RedisDataStore) NewPool() *redis.Pool

func (*RedisDataStore) RedisConnect

func (r *RedisDataStore) RedisConnect() (redis.Conn, error)

func (*RedisDataStore) Set

func (r *RedisDataStore) Set(k, v string) error

func (*RedisDataStore) SetEx

func (r *RedisDataStore) SetEx(k string, v interface{}, ex int64) error

Jump to

Keyboard shortcuts

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