Documentation
¶
Index ¶
- type RedisStore
- func (s *RedisStore) Delete(ctx context.Context, keys ...string) error
- func (s *RedisStore) Get(ctx context.Context, key string, dest any) error
- func (s *RedisStore) Keys(ctx context.Context, pattern string) ([]string, error)
- func (s *RedisStore) Scan(ctx context.Context, pattern string, count int64) ([]string, error)
- func (s *RedisStore) Set(ctx context.Context, key string, value any, expIn time.Duration) error
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisStore ¶ added in v1.0.2
type RedisStore struct {
// contains filtered or unexported fields
}
func NewRedisStore ¶
func NewRedisStore(client *redis.Client) *RedisStore
func (*RedisStore) Delete ¶ added in v1.0.2
func (s *RedisStore) Delete(ctx context.Context, keys ...string) error
type Store ¶
type Store interface { Set(ctx context.Context, key string, value any, expIn time.Duration) error Get(ctx context.Context, key string, dest any) error Keys(ctx context.Context, pattern string) ([]string, error) Scan(ctx context.Context, pattern string, count int64) ([]string, error) Delete(ctx context.Context, keys ...string) error }
Click to show internal directories.
Click to hide internal directories.