cache

package
v0.0.0-...-1a281b6 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(key string) error

func Exists

func Exists(key string) bool

func Expire

func Expire(key string, second int) error

func Get

func Get(key string) (string, error)

func HDelete

func HDelete(key, field string) error

func HExists

func HExists(key, field string) bool

func HGet

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

func HGetEntity

func HGetEntity(key string, entity data.EntityInterface) error

func HGetMap

func HGetMap(key string) (data.Map, error)

func HLen

func HLen(key string) (int, error)

func HSet

func HSet(key, field, value string) error

func HSetEntity

func HSetEntity(key string, entity data.EntityInterface) error

func HSetMap

func HSetMap(key string, value map[string]string) error

func Init

func Init(conf *Config)

func Set

func Set(key, val string) error

func TTL

func TTL(key string) (int, error)

Types

type Config

type Config struct {
	Address     string
	Password    string
	MaxIdle     int
	MaxActive   int
	IdleTimeout time.Duration
}
var Conf *Config

redis配置

Jump to

Keyboard shortcuts

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