Documentation
¶
Overview ¶
Package valkeystore provides a targeting.Store backed by Valkey or Redis.
Index ¶
- type Store
- func (s *Store) Exists(ctx context.Context, key string) (bool, error)
- func (s *Store) Get(ctx context.Context, key string) (string, bool, error)
- func (s *Store) MGet(ctx context.Context, keys ...string) ([]string, error)
- func (s *Store) MSet(ctx context.Context, kvs map[string]string, ttl time.Duration) error
- func (s *Store) Set(ctx context.Context, key, value string, ttl time.Duration) error
- func (s *Store) SetIntersect(ctx context.Context, keys ...string) ([]string, error)
- func (s *Store) SetIsMember(ctx context.Context, key, member string) (bool, error)
- func (s *Store) SetMembers(ctx context.Context, key string) ([]string, error)
- func (s *Store) ZAdd(ctx context.Context, key string, score float64, member string) error
- func (s *Store) ZCount(ctx context.Context, key string, min, max float64) (int64, error)
- func (s *Store) ZExpire(ctx context.Context, key string, ttl time.Duration) error
- func (s *Store) ZRemRangeByScore(ctx context.Context, key string, min, max float64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store wraps a go-redis client to satisfy targeting.Store.
func New ¶
New creates a Store from a go-redis client. Accepts *redis.Client, *redis.ClusterClient, or any redis.Cmdable.
func (*Store) SetIntersect ¶
func (*Store) SetIsMember ¶
func (*Store) SetMembers ¶
Click to show internal directories.
Click to hide internal directories.