Documentation ¶
Index ¶
- type Connection
- func (c *Connection) Cli() redis.UniversalClient
- func (c *Connection) Close() error
- func (c *Connection) Connect(opt Options) error
- func (c *Connection) Delete(ctx context.Context, key ...string) error
- func (c *Connection) GetStruct(ctx context.Context, key string, data any) error
- func (c *Connection) NewMutex(name string, options ...redsync.Option) *redsync.Mutex
- func (c *Connection) Ping(ctx context.Context) error
- func (c *Connection) SetStruct(ctx context.Context, key string, data any, expiration time.Duration) error
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
func New ¶
func New() *Connection
func (*Connection) Cli ¶
func (c *Connection) Cli() redis.UniversalClient
func (*Connection) Close ¶
func (c *Connection) Close() error
func (*Connection) Connect ¶
func (c *Connection) Connect(opt Options) error
func (*Connection) NewMutex ¶
func (c *Connection) NewMutex(name string, options ...redsync.Option) *redsync.Mutex
Click to show internal directories.
Click to hide internal directories.