Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cacher ¶
type Cacher interface { Set(k string, p string, v interface{}, d time.Duration) *model.TechnicalError Hset(k string, p string, v interface{}) *model.TechnicalError Delete(k string, p string) *model.TechnicalError Get(k string, p string) (v string, e *model.TechnicalError) Hget(k string, p string) (v string, e *model.TechnicalError) Ttl(k string, p string) (t time.Duration, e *model.TechnicalError) }
func NewClusterRedis ¶
func NewClusterRedis(o *RedisOptions) Cacher
func NewRedis ¶
func NewRedis(o *RedisOptions) Cacher
type Pooler ¶
type Pooler interface { BeginTx(ctx context.Context, opts pgx.TxOptions) (pgx.Tx, error) Begin(ctx context.Context) (pgx.Tx, error) QueryRow(ctx context.Context, sql string, args ...interface{}) pgx.Row Exec(ctx context.Context, sql string, args ...interface{}) (pgconn.CommandTag, error) Query(ctx context.Context, sql string, args ...interface{}) (pgx.Rows, error) }
Click to show internal directories.
Click to hide internal directories.