dao

package
v0.0.0-...-316850d Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2013 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEFAULT_SERVER_PORT           = 9090
	DEFAULT_REDIS_SERVER_IP       = "127.0.0.1"
	DEFAULT_REDIS_SERVER_PORT     = "6379"
	DEFAULT_REDIS_SERVER_PASSWORD = ""
)

storage server info

View Source
const (
	AUTH_CODE_KEY           = "auth_code"
	USER_KEY_PREFIX         = "hmuser-"
	USER_GROUP_KEY          = "hmusergroup"
	PAGE_ACCESS_RECORDS_KEY = "page_access_records"
)

redis key

Variables

View Source
var RedisPool *redis.Pool

Functions

func DelHashField

func DelHashField(key string, field string) (bool, error)

func DelKey

func DelKey(key string) (bool, error)

func Exists

func Exists(key string) (bool, error)

func FindKeys

func FindKeys(pattern string) ([]string, error)

func GetHash

func GetHash(key string, field string) (string, error)

func GetHashAll

func GetHashAll(key string) (map[string]string, error)

func HashFieldExists

func HashFieldExists(key string, field string) (bool, error)

func SetExpires

func SetExpires(key string, survivalSeconds uint64) (bool, error)

func SetHash

func SetHash(key string, field string, value string) (bool, error)

func SetHashBatch

func SetHashBatch(key string, fieldMap map[string]string) (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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