Documentation
¶
Index ¶
- type Cache
- func (c *Cache) Delete(ctx context.Context, key string) (int64, error)
- func (c *Cache) Exists(ctx context.Context, key string) (bool, error)
- func (c *Cache) Expire(ctx context.Context, key string, seconds int64) (bool, error)
- func (c *Cache) Get(ctx context.Context, key string) (string, error)
- func (c *Cache) GetListIndex(ctx context.Context, key string, value string) (int, error)
- func (c *Cache) Inc(ctx context.Context, key string) (int64, error)
- func (c *Cache) IncrBy(ctx context.Context, key string, value int64) (int64, error)
- func (c *Cache) LPop(ctx context.Context, key string) (string, error)
- func (c *Cache) LPush(ctx context.Context, key string, value ...interface{}) (int64, error)
- func (c *Cache) RPop(ctx context.Context, key string) (string, error)
- func (c *Cache) Set(ctx context.Context, key string, value []byte, seconds int64) error
- func (c *Cache) TTL(ctx context.Context, key string) (time.Duration, error)
- func (c *Cache) ZAdd(ctx context.Context, key string, members ...*Z) (int64, error)
- func (c *Cache) ZCard(ctx context.Context, key string) (int64, error)
- func (c *Cache) ZRange(ctx context.Context, key string, start, end int64) ([]string, error)
- func (c *Cache) ZRank(ctx context.Context, key, member string) (int64, error)
- func (c *Cache) ZRem(ctx context.Context, key string, members []interface{}) (int64, error)
- func (c *Cache) ZScan(ctx context.Context, key string, cursor uint64, match string, count int64) ([]string, uint64, error)
- type Z
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func (*Cache) Get ¶
Get Redis `GET key` command. It returns redis.Nil error when key does not exist.
func (*Cache) GetListIndex ¶
Click to show internal directories.
Click to hide internal directories.