redis

package
v0.0.0-...-f52182f Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2019 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const REDIS_AUTH_KEY string = "redis-auth"
View Source
const REDIS_KEY string = "redis"

Variables

This section is empty.

Functions

func Do

func Do(commandName string, args ...interface{}) (interface{}, error)

func EXPIRE

func EXPIRE(key string, timeout time.Duration) error

更新过期时间

func Flush

func Flush() error

Flush flushes the output buffer to the Redis server.

func Get

func Get(key string) string

func Put

func Put(key string, val string, timeout time.Duration) error

func Receive

func Receive() (interface{}, error)

Receive receives a single reply from the Redis server

func RedisPollInit

func RedisPollInit() *redis.Pool

func Send

func Send(commandName string, args ...interface{}) error

Send writes the command to the client's output buffer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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