Versions in this module Expand all Collapse all v1 v1.0.0 Jan 8, 2023 Changes in this version + type Cacher interface + Delete func(k string, p string) *model.TechnicalError + Get func(k string, p string) (v string, e *model.TechnicalError) + Hget func(k string, p string) (v string, e *model.TechnicalError) + Hset func(k string, p string, v interface{}) *model.TechnicalError + Set func(k string, p string, v interface{}, d time.Duration) *model.TechnicalError + Ttl func(k string, p string) (t time.Duration, e *model.TechnicalError) + func NewClusterRedis(o *RedisOptions) Cacher + func NewRedis(o *RedisOptions) Cacher + type PgOptions struct + Host string + Logger *zap.Logger + Options *string + Passwd string + Port string + Schema string + User string + type PgPool struct + Pool *pgxpool.Pool + func NewPgPool(pg *PgOptions) *PgPool + type Pooler interface + Begin func(ctx context.Context) (pgx.Tx, error) + BeginTx func(ctx context.Context, opts pgx.TxOptions) (pgx.Tx, error) + Exec func(ctx context.Context, sql string, args ...interface{}) (pgconn.CommandTag, error) + Query func(ctx context.Context, sql string, args ...interface{}) (pgx.Rows, error) + QueryRow func(ctx context.Context, sql string, args ...interface{}) pgx.Row + type RedisOptions struct + Addr string + Addrs []string + Idle int + Index int + Logger *zap.Logger + Passwd string + Pool int