redis

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func DelDefault added in v0.0.38

func DelDefault(key string) error

func ExistsDefault

func ExistsDefault(key string) (*bool, error)

func GetDefault

func GetDefault(name string, rec encoding.BinaryUnmarshaler) error

func SetDefault

func SetDefault(key string, value interface{}, exp time.Duration) error

func SetNXDefault

func SetNXDefault(key string, value interface{}, exp time.Duration) error

Types

type DelFunc added in v0.0.38

type DelFunc func(string) error
var Del DelFunc = DelDefault

type ExistsFunc

type ExistsFunc func(string) (*bool, error)
var Exists ExistsFunc = ExistsDefault

type GetFunc

type GetFunc func(string, encoding.BinaryUnmarshaler) error
var Get GetFunc = GetDefault

type SetFunc

type SetFunc func(string, interface{}, time.Duration) error
var Set SetFunc = SetDefault

type SetNXFunc

type SetNXFunc func(string, interface{}, time.Duration) error
var SetNx SetNXFunc = SetNXDefault

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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