Documentation ¶
Index ¶
- Variables
- type Config
- type Redis
- func (this *Redis) Close() error
- func (this *Redis) Delete(key string) error
- func (this *Redis) FormatKey(key string) string
- func (this *Redis) Get(key string) ([]byte, error)
- func (this *Redis) GetClient() *redis.Client
- func (this *Redis) GetCtx() context.Context
- func (this *Redis) Reset() error
- func (this *Redis) Set(key string, val []byte, exp time.Duration) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ConfigDefault = Config{ Host: "127.0.0.1", Port: 6379, Username: "", Password: "", URL: "", Database: 0, Reset: false, TLSConfig: nil, KeyPrefix: "", }
默认配置
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Redis ¶
type Redis struct {
// contains filtered or unexported fields
}
*
- redis *
- @create 2022-7-6
- @author deatil
Click to show internal directories.
Click to hide internal directories.