Documentation ¶
Index ¶
- type ConnAdapter
- func (c *ConnAdapter) Cli() redis.UniversalClient
- func (c *ConnAdapter) Close() error
- func (c *ConnAdapter) Connect(opt Options) error
- func (c *ConnAdapter) Delete(ctx context.Context, key ...string) error
- func (c *ConnAdapter) GetStruct(ctx context.Context, key string, data any) error
- func (c *ConnAdapter) Ping(ctx context.Context) error
- func (c *ConnAdapter) 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 ConnAdapter ¶ added in v0.3.1
type ConnAdapter struct {
// contains filtered or unexported fields
}
func New ¶
func New() *ConnAdapter
func (*ConnAdapter) Cli ¶ added in v0.3.1
func (c *ConnAdapter) Cli() redis.UniversalClient
func (*ConnAdapter) Close ¶ added in v0.3.1
func (c *ConnAdapter) Close() error
func (*ConnAdapter) Connect ¶ added in v0.3.1
func (c *ConnAdapter) Connect(opt Options) error
func (*ConnAdapter) Delete ¶ added in v0.3.1
func (c *ConnAdapter) Delete(ctx context.Context, key ...string) error
Click to show internal directories.
Click to hide internal directories.