Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisStore ¶
type RedisStore interface { Ping(ctx context.Context) *redis.StatusCmd Get(ctx context.Context, key string) *redis.StringCmd Set(ctx context.Context, key string, value interface{}, expiration time.Duration) *redis.StatusCmd Del(ctx context.Context, keys ...string) *redis.IntCmd SMembers(ctx context.Context, key string) *redis.StringSliceCmd FlushAll(ctx context.Context) *redis.StatusCmd SAdd(ctx context.Context, key string, members ...interface{}) *redis.IntCmd Expire(ctx context.Context, key string, expiration time.Duration) *redis.BoolCmd Close() error }
RedisStore is an abstraction of a *redis.Client used for testing.
Click to show internal directories.
Click to hide internal directories.