Documentation
¶
Index ¶
- type KVStorage
- func (s *KVStorage) Close() error
- func (s *KVStorage) Delete(key string) error
- func (s *KVStorage) DeleteWithContext(ctx context.Context, key string) error
- func (s *KVStorage) Get(key string) ([]byte, error)
- func (s *KVStorage) GetWithContext(ctx context.Context, key string) ([]byte, error)
- func (s *KVStorage) Reset() error
- func (s *KVStorage) ResetWithContext(ctx context.Context) error
- func (s *KVStorage) Set(key string, val []byte, exp time.Duration) error
- func (s *KVStorage) SetWithContext(ctx context.Context, key string, val []byte, exp time.Duration) error
- type VKOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KVStorage ¶
type KVStorage struct {
// contains filtered or unexported fields
}
KVStorage implements fiber.Storage
func NewVKStorage ¶
func NewVKStorageFromClient ¶
func (*KVStorage) DeleteWithContext ¶
func (*KVStorage) GetWithContext ¶
func (*KVStorage) ResetWithContext ¶
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
}
Click to show internal directories.
Click to hide internal directories.