Documentation ¶
Index ¶
- type Cache
- func (c *Cache) Decr(ctx context.Context, key string) (int64, error)
- func (c *Cache) DeleteKey(ctx context.Context, key string) error
- func (c *Cache) DeleteKeyOld(ctx context.Context, key string) (int64, error)
- func (c *Cache) GetKey(ctx context.Context, key string) (string, error)
- func (c *Cache) Incr(ctx context.Context, key string) (int64, error)
- func (c *Cache) SAdd(ctx context.Context, setKey string, member interface{}) error
- func (c *Cache) SIsMember(ctx context.Context, setKey string, member interface{}) (bool, error)
- func (c *Cache) SRem(ctx context.Context, setKey string, member interface{}) error
- func (c *Cache) SetKey(ctx context.Context, key string, value interface{}, expiration time.Duration) error
- func (c *Cache) XAck(ctx context.Context, stream, group, id string) (int64, error)
- func (c *Cache) XAdd(ctx context.Context, stream, id string, values map[string]interface{}) (string, error)
- func (c *Cache) XGroupCreate(ctx context.Context, stream, group, start string) error
- func (c *Cache) XRead(ctx context.Context, streams []string, count int64, block time.Duration) ([]redis.XStream, error)
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) DeleteKeyOld ¶
func (*Cache) XGroupCreate ¶
Click to show internal directories.
Click to hide internal directories.