Documentation
¶
Index ¶
- type Adapter
- func (a *Adapter) Exec(ctx context.Context) ([]redis.Cmder, error)
- func (a *Adapter) Expire(ctx context.Context, key string, expiration time.Duration) *redis.BoolCmd
- func (a *Adapter) ZAdd(ctx context.Context, key string, members ...redis.Z) *redis.IntCmd
- func (a *Adapter) ZRange(ctx context.Context, key string, start, stop int64) *redis.StringSliceCmd
- func (a *Adapter) ZRemRangeByScore(ctx context.Context, key string, min, max string) *redis.IntCmd
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
func NewAdapter ¶
func NewAdapter(pipeliner redis.Pipeliner) *Adapter
func (*Adapter) Exec ¶
Exec executes all previously queued commands in a transaction and restores the connection state to normal.
func (*Adapter) Expire ¶
Expire sets a timeout on key. After the timeout has expired, the key will automatically be deleted.
func (*Adapter) ZAdd ¶
ZAdd adds all the specified members with the specified scores to the sorted set stored at key.
Click to show internal directories.
Click to hide internal directories.