Documentation
¶
Index ¶
- type KVBadgerDriver
- func (k *KVBadgerDriver) AddToSets(ctx context.Context, key string, value string) error
- func (k *KVBadgerDriver) AddToSortedSets(ctx context.Context, setName string, key string, exp time.Duration) error
- func (k *KVBadgerDriver) CheckKeyHashMap(ctx context.Context, hash, key string) bool
- func (k *KVBadgerDriver) CheckRedisKey(ctx context.Context, keys ...string) (bool, error)
- func (k *KVBadgerDriver) DelValue(ctx context.Context, key string) error
- func (k *KVBadgerDriver) GetFromHashMap(ctx context.Context, hash, key string) (string, error)
- func (k *KVBadgerDriver) GetFromSortedSets(ctx context.Context, setName string, key string) (float64, error)
- func (k *KVBadgerDriver) GetJSONObject(ctx context.Context, key string) (interface{}, error)
- func (k *KVBadgerDriver) GetValue(ctx context.Context, key string) (string, error)
- func (k *KVBadgerDriver) RemoveSets(ctx context.Context, key string, value string) error
- func (k *KVBadgerDriver) SetJSONObject(ctx context.Context, key string, value interface{}, expiration time.Duration) error
- func (k *KVBadgerDriver) SetToHashMap(ctx context.Context, hash, key string, value string) error
- func (k *KVBadgerDriver) SetValue(ctx context.Context, key string, value string, expiration time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KVBadgerDriver ¶
func GetKVBadgerDriver ¶
func GetKVBadgerDriver(cfg *models.Config) (*KVBadgerDriver, error)
func (*KVBadgerDriver) AddToSortedSets ¶
func (*KVBadgerDriver) CheckKeyHashMap ¶
func (k *KVBadgerDriver) CheckKeyHashMap(ctx context.Context, hash, key string) bool
func (*KVBadgerDriver) CheckRedisKey ¶
func (*KVBadgerDriver) DelValue ¶
func (k *KVBadgerDriver) DelValue(ctx context.Context, key string) error
func (*KVBadgerDriver) GetFromHashMap ¶
func (*KVBadgerDriver) GetFromSortedSets ¶
func (*KVBadgerDriver) GetJSONObject ¶
func (k *KVBadgerDriver) GetJSONObject(ctx context.Context, key string) (interface{}, error)
func (*KVBadgerDriver) RemoveSets ¶
func (*KVBadgerDriver) SetJSONObject ¶
func (*KVBadgerDriver) SetToHashMap ¶
Click to show internal directories.
Click to hide internal directories.