Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisClient ¶
type RedisClient struct {
// contains filtered or unexported fields
}
func NewRedisClient ¶
func NewRedisClient(settings config.RedisSettings) *RedisClient
func (*RedisClient) Close ¶
func (r *RedisClient) Close() error
func (*RedisClient) Delete ¶
func (r *RedisClient) Delete(key string) error
func (*RedisClient) Reset ¶
func (r *RedisClient) Reset() error
type Storer ¶
type Storer interface { Get(key string) ([]byte, error) Set(key string, val []byte, exp time.Duration) error Delete(key string) error Reset() error Close() error }
an implementation of https://github.com/gofiber/storage
type Stores ¶
type Stores struct {
Limiter Storer
}
func ConfigureStores ¶
func ConfigureStores(limiter config.RedisSettings) *Stores
Click to show internal directories.
Click to hide internal directories.