redis

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

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

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PoolMaxIdle = 10

Functions

func Exists

func Exists(key, itemKey string) bool

func Expire

func Expire(key string, seconds int)

func Get

func Get(userKey, itemKey string) (interface{}, bool)

func GetBool

func GetBool(userKey, itemKey string) (bool, bool)

func GetBytes

func GetBytes(userKey, itemKey string) ([]byte, bool)

func GetFloat64

func GetFloat64(userKey, itemKey string) (float64, bool)

func GetInt

func GetInt(userKey, itemKey string) (int, bool)

func GetInt64

func GetInt64(userKey, itemKey string) (int64, bool)

func GetInt64Map

func GetInt64Map(userKey, itemKey string) (map[string]int64, bool)

func GetIntMap

func GetIntMap(userKey, itemKey string) (map[string]int, bool)

func GetInts

func GetInts(userKey, itemKey string) ([]int, bool)

func GetString

func GetString(userKey, itemKey string) (string, bool)

func GetStringMap

func GetStringMap(userKey, itemKey string) (map[string]string, bool)

func GetStrings

func GetStrings(userKey, itemKey string) ([]string, bool)

func GetUint64

func GetUint64(userKey, itemKey string) (uint64, bool)

func RemoveItem

func RemoveItem(userKey, itemKey string)

func Store

func Store(key, itemKey string, item interface{})

Types

type Redis

type Redis struct {
	Address string `goblet:"address,localhost:6379"`
	Pwd     string `goblet:"pwd"`
	Db      int64  `goblet:"db"`
}

func (*Redis) AddCfgAndInit

func (r *Redis) AddCfgAndInit(server *goblet.Server) error

func (*Redis) Init

func (r *Redis) Init(server *goblet.Server) error

Jump to

Keyboard shortcuts

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