redis

package
v0.0.0-...-d94a24a Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2017 License: MIT Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpiredAfterGet

func ExpiredAfterGet(r *redis.Pool, key string) (interface{}, error)

func Get

func Get(r *redis.Pool, key string) (interface{}, error)

func Hgetall

func Hgetall(r *redis.Pool, key string) (map[string]string, error)

func Hmset

func Hmset(r *redis.Pool, key string, value interface{}) error

func InitPool

func InitPool(host, port, auth string) *redis.Pool

func NewPool

func NewPool() *redis.Pool

func Set

func Set(r *redis.Pool, key string, value interface{}, time int64) error

func ValueIsBool

func ValueIsBool(v interface{}) (bool, error)

func ValueIsString

func ValueIsString(v interface{}) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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