Documentation
¶
Index ¶
- type Cache
- type Client
- type Config
- type File
- type FileConfig
- type Redis
- func (r *Redis) Delete(key string) error
- func (r *Redis) DeleteWithContext(ctx context.Context, key string) error
- func (r *Redis) Get(key string, value any) error
- func (r *Redis) GetWithContext(ctx context.Context, key string, value any) error
- func (r *Redis) Ping(ctx context.Context) error
- func (r *Redis) Set(key string, value any, expir time.Duration) error
- func (r *Redis) SetWithContext(ctx context.Context, key string, value any, expir time.Duration) error
- type RedisConfig
- type Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Config ¶
type Config struct {
Use string
File *FileConfig
Redis *RedisConfig
}
type FileConfig ¶
type FileConfig struct {
Path string
}
type Redis ¶
func NewRedis ¶
func NewRedis(config *RedisConfig) *Redis
func (*Redis) DeleteWithContext ¶
func (*Redis) GetWithContext ¶
type RedisConfig ¶
Click to show internal directories.
Click to hide internal directories.