Documentation ¶
Index ¶
- func NewCache(address, password string) dcomponent.Cache
- func NewLock(address, password string) *redisDLock
- type Cache
- func (c *Cache) DelSetMember(ctx context.Context, key string, member ...interface{}) error
- func (c *Cache) Delete(ctx context.Context, key ...string) error
- func (c *Cache) Exist(ctx context.Context, key string) (bool, error)
- func (c *Cache) Get(ctx context.Context, key string, value interface{}) error
- func (c *Cache) GetHash(ctx context.Context, key, field string, value interface{}) error
- func (c *Cache) GetList(ctx context.Context, key string, value interface{}) error
- func (c *Cache) IsSetMember(ctx context.Context, key string, member interface{}) (bool, error)
- func (c *Cache) Keys(ctx context.Context, pattern string) ([]string, error)
- func (c *Cache) MGet(ctx context.Context, keys []string, value interface{}) error
- func (c *Cache) Name() string
- func (c *Cache) Set(ctx context.Context, key string, value interface{}, expire time.Duration) error
- func (c *Cache) SetAdd(ctx context.Context, key string, member interface{}) error
- func (c *Cache) SetHash(ctx context.Context, key, field string, value interface{}) error
- func (c *Cache) SetList(ctx context.Context, key string, value interface{}) error
- func (c *Cache) SetNX(ctx context.Context, key string, value interface{}, expire time.Duration) error
- func (c *Cache) UpdateExpire(ctx context.Context, key string, expire time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCache ¶
func NewCache(address, password string) dcomponent.Cache
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func (*Cache) DelSetMember ¶
func (*Cache) GetHash ¶
func (*Cache) GetList ¶
func (*Cache) IsSetMember ¶
func (*Cache) MGet ¶
func (*Cache) Set ¶
func (*Cache) SetAdd ¶
func (*Cache) SetHash ¶
func (*Cache) SetList ¶
func (*Cache) SetNX ¶
Click to show internal directories.
Click to hide internal directories.