Documentation ¶
Index ¶
- Constants
- func AllCache(search string, page, rows int) (et.List, error)
- func Close()
- func Count(key string, expiration time.Duration) int64
- func Delete(key string) (int64, error)
- func DeleteCtx(ctx context.Context, key string) (int64, error)
- func DeleteVerify(device string, key string) (int64, error)
- func Empty() error
- func Get(key, def string) (string, error)
- func GetCtx(ctx context.Context, key, def string) (string, error)
- func GetItem(key string) (et.Item, error)
- func GetItems(key string) (et.Items, error)
- func GetJson(key string) (et.Json, error)
- func GetVerify(device string, key string) (string, error)
- func HDelete(key, atr string) error
- func HDeleteCtx(ctx context.Context, key, atr string) error
- func HGet(key string) (map[string]string, error)
- func HGetAtrib(key, atr string) (string, error)
- func HGetCtx(ctx context.Context, key string) (map[string]string, error)
- func HSet(key string, val map[string]string) error
- func HSetAtrib(key, atr, val string) error
- func HSetCtx(ctx context.Context, key string, val map[string]string) error
- func HandlerAll(w http.ResponseWriter, r *http.Request)
- func HandlerDelete(w http.ResponseWriter, r *http.Request)
- func HandlerGet(w http.ResponseWriter, r *http.Request)
- func More(key string, second time.Duration) int
- func Pub(channel string, message interface{}) error
- func Set(key string, val interface{}, second time.Duration) error
- func SetCtx(ctx context.Context, key, val string, second time.Duration) error
- func SetD(key string, val interface{}) error
- func SetH(key string, val interface{}) error
- func SetM(key string, val interface{}) error
- func SetVerify(device, key, val string, duration time.Duration) error
- func SetW(key string, val interface{}) error
- func SetY(key string, val interface{}) error
- func Sub(channel string, f func(interface{}))
- type Conn
Constants ¶
const IsNil = redis.Nil
Variables ¶
This section is empty.
Functions ¶
func AllCache ¶
* * AllCache * @params device string * @params key string * @params val string * @return error *
func Count ¶ added in v0.0.172
* * Count * @params key string * @params expiration time.Duration * @return int64 *
func DeleteCtx ¶ added in v1.0.11
* * DeleteCtx * @params ctx context.Context * @params key string * @return int64, error *
func DeleteVerify ¶ added in v1.0.11
* * DeleteVerify * @params device string * @params key string * @return int64, error *
func GetCtx ¶
* * GetCtx * @params ctx context.Context * @params key string * @params def string * @return string, error *
func GetVerify ¶
* * GetVerify * @params device string * @params key string * @return string, error *
func HDelete ¶ added in v1.0.11
* * HDelete * @params key string * @params atr string * @return error *
func HDeleteCtx ¶ added in v1.0.11
* * HDeleteCtx * @params ctx context.Context * @params key string * @params atr string * @return error *
func HGetAtrib ¶ added in v0.0.77
* * HGetAtrib * @params key string * @params atr string * @return string, error *
func HGetCtx ¶
* * HGetCtx * @params ctx context.Context * @params key string * @return map[string]string, error *
func HSetAtrib ¶ added in v0.0.77
* * HSetAtrib * @params key string * @params atr string * @params val string * @return error *
func HSetCtx ¶
* * HSetCtx * @params ctx context.Context * @params key string * @params val map[string]string * @return error *
func HandlerAll ¶ added in v0.0.172
func HandlerAll(w http.ResponseWriter, r *http.Request)
* * HandlerAll * @params w http.ResponseWriter * @params r *http.Request *
func HandlerDelete ¶ added in v1.0.11
func HandlerDelete(w http.ResponseWriter, r *http.Request)
* * HandlerDelete * @params w http.ResponseWriter * @params r *http.Request *
func HandlerGet ¶ added in v0.0.172
func HandlerGet(w http.ResponseWriter, r *http.Request)
* * HandlerGet * @params w http.ResponseWriter * @params r *http.Request *
func More ¶ added in v0.0.44
* * More * @params key string * @params second time.Duration * @return int *
func Set ¶
* * Set * @params key string * @params val interface{} * @params second time.Duration * @return error *
func SetCtx ¶
* * SetCtx * @params ctx context.Context * @params key string * @params val string * @params second time.Duration * @return error *
func SetD ¶ added in v0.0.120
* * SetD * @params key string * @params val interface{} * @return error *
func SetH ¶ added in v0.0.169
* * SetH * @params key string * @params val interface{} * @return error *
func SetM ¶ added in v0.0.120
* * SetM * @params key string * @params val interface{} * @return error *
func SetVerify ¶
* * SetVerify * @params device string * @params key string * @params val string * @params duration time.Duration * @return error *
func SetW ¶ added in v0.0.120
* * SetW * @params key string * @params val interface{} * @return error *