Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemoryStore ¶
type Redis ¶
type Redis struct {
// contains filtered or unexported fields
}
func NewRedis ¶
func NewRedis(config RedisConfig) (Redis, error)
func NewRedisMock ¶ added in v1.0.1
func NewRedisMock(client *redis.Client) Redis
func (Redis) IncrByFloat ¶ added in v1.1.0
type RedisClient ¶ added in v1.0.1
type RedisClient interface { Del(ctx context.Context, keys ...string) *redis.IntCmd Get(ctx context.Context, key string) *redis.StringCmd IncrByFloat(ctx context.Context, key string, value float64) *redis.FloatCmd Ping(ctx context.Context) *redis.StatusCmd Set(ctx context.Context, key string, value interface{}, expiration time.Duration) *redis.StatusCmd }
Click to show internal directories.
Click to hide internal directories.