Documentation ¶
Index ¶
- Constants
- func New(config *config.RedisInfraConfig) common.RedisInfra
- type RedisInfra
- func (i *RedisInfra) Delete(key string) error
- func (i *RedisInfra) Get(key string) (string, error)
- func (i *RedisInfra) Name() string
- func (i *RedisInfra) ReadAllKeys(match string) ([]string, error)
- func (i *RedisInfra) Set(key string, value interface{}, expiration time.Duration) error
- func (i *RedisInfra) SetNX(key string, value interface{}, expiration time.Duration) (bool, error)
Constants ¶
View Source
const (
RedisInfraName = "Redis" // Redis基础设施名称
)
常量相关定义
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RedisInfra ¶
RedisInfra Redis基础设施类型定义
func (*RedisInfra) ReadAllKeys ¶
func (i *RedisInfra) ReadAllKeys(match string) ([]string, error)
ReadAllKeys 读取所有的key
Click to show internal directories.
Click to hide internal directories.