Documentation ¶
Index ¶
- func BeginTx(rdb *redis.Client, cb func(tx *redis.Tx) error, keys ...string) error
- func Commit(rdb *redis.Client, cb func(pipe redis.Pipeliner) error) error
- func CommitTx(tx *redis.Tx, cb func(pipe redis.Pipeliner) error) error
- func Getter[T any, PT SetGetter[T]](rdb *redis.Client, key string) (*T, bool, error)
- func MysqlOverSsh(dsn string, cli *ssh.Client) string
- func NewRedisOptions(addr, user, pass string, db int) *redis.Options
- func NewRedisOptionsWithUrl(url string) *redis.Options
- func RedisOverSsh(opt *redis.Options, cli *ssh.Client) (*redis.Client, error)
- func Setter[T any](key string, t *T) func(redis.Pipeliner) error
- type SetGetter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRedisOptions ¶
func NewRedisOptionsWithUrl ¶
func NewRedisOptionsWithUrl(url string) *redis.Options
func RedisOverSsh ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.