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) 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) Increase(ctx context.Context, key string) 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
}
Click to show internal directories.
Click to hide internal directories.