Documentation ¶
Index ¶
- Constants
- Variables
- func DelHashField(key string, field string) (bool, error)
- func DelKey(key string) (bool, error)
- func Exists(key string) (bool, error)
- func FindKeys(pattern string) ([]string, error)
- func GetHash(key string, field string) (string, error)
- func GetHashAll(key string) (map[string]string, error)
- func HashFieldExists(key string, field string) (bool, error)
- func SetExpires(key string, survivalSeconds uint64) (bool, error)
- func SetHash(key string, field string, value string) (bool, error)
- func SetHashBatch(key string, fieldMap map[string]string) (bool, error)
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 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.