Documentation
¶
Index ¶
- Constants
- Variables
- func Delete(key string) (bool, error)
- func Exists(key string) bool
- func Get(key string) (string, error)
- func GetStruct(key string, target interface{}) error
- func LikeDeletes(key string) error
- func MockExpectGet(conn *redigomock.Conn, key string, value string, err error)
- func MockExpectGetStruct(conn *redigomock.Conn, key string, value interface{}, err error)
- func MockExpectPing(conn *redigomock.Conn, err error)
- func MockExpectSet(conn *redigomock.Conn, key string, value string, time gtime.Duration, ...)
- func MockExpectSetStruct(conn *redigomock.Conn, key string, value interface{}, time gtime.Duration, ...)
- func MockRedis() *redigomock.Conn
- func Ping() error
- func Set(key string, value string, time ...gtime.Duration) error
- func SetStruct(key string, value interface{}, time ...gtime.Duration) error
- func Setup()
Constants ¶
View Source
const (
DefaultTTL = 10 * gtime.Minute
)
Variables ¶
View Source
var (
ErrNoKey = errors.New("redis missing key")
)
Functions ¶
func MockExpectGet ¶
func MockExpectGet(conn *redigomock.Conn, key string, value string, err error)
func MockExpectGetStruct ¶
func MockExpectGetStruct(conn *redigomock.Conn, key string, value interface{}, err error)
func MockExpectPing ¶
func MockExpectPing(conn *redigomock.Conn, err error)
func MockExpectSet ¶
func MockExpectSetStruct ¶
func MockRedis ¶
func MockRedis() *redigomock.Conn
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.