Versions in this module Expand all Collapse all v1 v1.1.12 Jan 27, 2021 Changes in this version + const CACHE_ROW_PLUGIN + func InjectGorm(db *gorm.DB, opt *option.DefaultOption, redisOption *option.RedisOption) *plugin + type Group struct + func (g *Group) Do(key string, fn func() (interface{}, error)) (v interface{}, err error, shared bool) + func (g *Group) DoChan(key string, fn func() (interface{}, error)) <-chan Result + func (g *Group) Forget(key string) + type Handle struct + func (h *Handle) Debug(item ...interface{}) + func (h *Handle) JoinAffectKey(table string, key string) string + func (h *Handle) JoinCountSecondKey(key string) string + func (h *Handle) JoinModelKey(table string, primary interface{}) string + func (h *Handle) JoinModelKeys(table string, primarys ...interface{}) []string + func (h *Handle) JoinSearchKey(table string, key string, indexKeys []interface{}) string + func (h *Handle) NewCreateHandle() *createHandle + func (h *Handle) NewDeleteHandle() *deleteHandle + func (h *Handle) NewQueryHandle() *queryHandle + func (h *Handle) NewUpdateHandle() *updateHandle + func (h *Handle) RefreshEvent(key string, search bool) + func (h *Handle) RefreshRun() + type JsonModel struct + Model interface{} + PK string + type JsonSearch struct + Primarys []interface{} + Timeout int64 + type RedisClient interface + Del func(keys ...string) *redis.IntCmd + Eval func(script string, keys []string, args ...interface{}) *redis.Cmd + EvalSha func(sha1 string, keys []string, args ...interface{}) *redis.Cmd + Expire func(key string, expiration time.Duration) *redis.BoolCmd + FlushDB func() *redis.StatusCmd + HDel func(key string, fields ...string) *redis.IntCmd + HGet func(key, field string) *redis.StringCmd + HGetAll func(key string) *redis.StringStringMapCmd + HScan func(key string, cursor uint64, match string, count int64) *redis.ScanCmd + HSet func(key, field string, value interface{}) *redis.BoolCmd + MGet func(keys ...string) *redis.SliceCmd + ScriptExists func(hashes ...string) *redis.BoolSliceCmd + ScriptLoad func(script string) *redis.StringCmd + Set func(key string, value interface{}, expiration time.Duration) *redis.StatusCmd + type Result struct + Err error + Shared bool + Val interface{}