Documentation ¶
Index ¶
- func NewCache(prefix string, store cache.ICache) cache.ICache
- type Cache
- func (e *Cache) Connect() error
- func (e *Cache) Decrease(ctx context.Context, key string) (int64, error)
- func (e *Cache) Del(ctx context.Context, key string) error
- func (e *Cache) Expire(ctx context.Context, key string, dur time.Duration) error
- func (e *Cache) Get(ctx context.Context, key string) (*gvar.Var, error)
- func (e *Cache) HashDel(ctx context.Context, hk, key string) error
- func (e *Cache) HashGet(ctx context.Context, hk, key string) (*gvar.Var, error)
- func (e *Cache) HashGetAll(ctx context.Context, key string) (*gvar.Var, error)
- func (e *Cache) HashLen(ctx context.Context, key string) (int64, error)
- func (e *Cache) HashMGet(ctx context.Context, key string, fields ...string) (gvar.Vars, error)
- func (e *Cache) HashMSet(ctx context.Context, key string, fields map[string]interface{}) error
- func (e *Cache) HashSet(ctx context.Context, key string, fields map[string]interface{}) (int64, error)
- func (e *Cache) HashVals(ctx context.Context, key string) (gvar.Vars, error)
- func (e *Cache) Increase(ctx context.Context, key string) (int64, error)
- func (e *Cache) ListPush(ctx context.Context, key string, values ...interface{}) (int64, error)
- func (e *Cache) ListRPop(ctx context.Context, key string, count ...int) (*gvar.Var, error)
- func (e *Cache) Set(ctx context.Context, key string, val interface{}, expire int) error
- func (e *Cache) SetPrefix(prefix string)
- func (e *Cache) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func (*Cache) HashGetAll ¶ added in v2.0.32
Click to show internal directories.
Click to hide internal directories.