redisutil

package
v0.0.0-...-8af1e45 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2015 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ENV_REDIS_SERVER = "REDIS_SERVER"

	GET_COMMAND  = "SET"
	HGET_COMMAND = "HGET"
	HGET_ALL     = "HGETALL"
)

Variables

This section is empty.

Functions

func GetRedisServer

func GetRedisServer() string

GetRedisServer reads the environment variable to return the address of redis.

func GetString

func GetString(key string) string

GetString performs the get command to return string.

func HgetBool

func HgetBool(key string, field string) bool

HgetBool performs hget command to return boolean.

func HgetInt

func HgetInt(key string, field string) int

HgetInt performs the hget command to return int.

func HgetString

func HgetString(key string, field int) string

HgetString performs the hget command to return string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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