Documentation
¶
Index ¶
- type VKOptions
- type VKStorage
- func (s *VKStorage) Close() error
- func (s *VKStorage) Delete(key string) error
- func (s *VKStorage) DeleteWithContext(ctx context.Context, key string) error
- func (s *VKStorage) Get(key string) ([]byte, error)
- func (s *VKStorage) GetWithContext(ctx context.Context, key string) ([]byte, error)
- func (s *VKStorage) Reset() error
- func (s *VKStorage) ResetWithContext(ctx context.Context) error
- func (s *VKStorage) Set(key string, val []byte, exp time.Duration) error
- func (s *VKStorage) SetWithContext(ctx context.Context, key string, val []byte, exp time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VKOptions ¶
type VKOptions struct { WriteClient *redis.Client ReadClient *redis.Client Addr string Password string DB int PoolSize int PipeSize int FlushInterval time.Duration Workers int QueueCapacity int EnqueueTimeout time.Duration WaitAckTimeout time.Duration ExecTimeout time.Duration DirectWriteTimeout time.Duration Prefix string ResetUseFlushDB bool ResetScanCount int }
type VKStorage ¶
type VKStorage struct {
// contains filtered or unexported fields
}
VKStorage implements fiber.Storage
func NewVKStorage ¶
func NewVKStorageFromClient ¶
func (*VKStorage) DeleteWithContext ¶
func (*VKStorage) GetWithContext ¶
func (*VKStorage) ResetWithContext ¶
Click to show internal directories.
Click to hide internal directories.