Documentation ¶
Index ¶
- Variables
- func Del(key string) error
- func Do(a radix.Action) error
- func Expired(key string) (int64, error)
- func Get(key string) (string, error)
- func HGet(key, field string) (string, error)
- func HGetAll(key string) (map[string]string, error)
- func HSet(key, sub, value string) error
- func HSetMap(key string, vals map[string]string) error
- func MapFields(values map[string]string) []string
- func MustInit(host string)
- func Pipeline(cmds ...radix.CmdAction) error
- func PubSub(host string) (radix.PubSubConn, error)
- func Publish(topic, value string) error
- func SAdd(key, value string) (bool, error)
- func SCard(key string) (int64, error)
- func SIsMember(key, value string) (bool, error)
- func SMembers(key string) ([]string, error)
- func SRandMember(key string) (string, error)
- func SRem(key, value string) (bool, error)
- func Set(key, value string) error
- func SetCheckExpired(key string, td time.Duration) (bool, error)
- func Type(key string) (string, error)
- type CmdAction
- type ErrDiscarded
- type MaybeNil
- type NoResultError
- type PubSubMessage
- type Storage
- type Tuple
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Cmd = radix.Cmd FlatCmd = radix.FlatCmd NewEvalScript = radix.NewEvalScript )
View Source
var ErrNoResult = NoResultError{}
View Source
var Pool *radix.Pool
Pool is a shared-access connection pool
Functions ¶
func Expired ¶
Expired returns the TTL in milliseconds if the key is not expired, or a negative value otherwise.
func SetCheckExpired ¶
SetCheckExpired checks if the given key is expired, and if it is returns true and sets the key to a timestamp for the next `td` duration.
Types ¶
type CmdAction ¶
type CmdAction = radix.CmdAction
type ErrDiscarded ¶
type ErrDiscarded = resp.ErrDiscarded
type MaybeNil ¶
type MaybeNil = radix.MaybeNil
type NoResultError ¶
type NoResultError struct{}
func (NoResultError) Error ¶
func (NoResultError) Error() string
func (NoResultError) Is ¶
func (NoResultError) Is(target error) bool
func (NoResultError) Unwrap ¶
func (NoResultError) Unwrap() error
type PubSubMessage ¶
type PubSubMessage = radix.PubSubMessage
type Storage ¶
type Storage struct { }
type Tuple ¶
type Tuple = radix.Tuple
Click to show internal directories.
Click to hide internal directories.