Documentation ¶ Index ¶ type DRV func New(ctx context.Context, keyPrefix string, config config.Redis) (DRV, error) func (drv DRV) Close() func (drv DRV) Get(k string, o any) error func (drv DRV) GetTTL(k string) (time.Duration, error) func (drv DRV) Set(k string, v any, ttl ...time.Duration) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type DRV ¶ type DRV struct { // contains filtered or unexported fields } func New ¶ func New(ctx context.Context, keyPrefix string, config config.Redis) (DRV, error) func (DRV) Close ¶ func (drv DRV) Close() func (DRV) Get ¶ func (drv DRV) Get(k string, o any) error func (DRV) GetTTL ¶ func (drv DRV) GetTTL(k string) (time.Duration, error) Returns time until the key expires, not the time it will be considered expired. func (DRV) Set ¶ func (drv DRV) Set(k string, v any, ttl ...time.Duration) error Source Files ¶ View all Source files redis.go Click to show internal directories. Click to hide internal directories.