Documentation
¶
Index ¶
- type Client
- type PebbleCache
- func (n *PebbleCache[K, V]) Delete(key K) error
- func (n *PebbleCache[K, V]) Get(key K) (value V, cost int64, expire int64, ok bool, err error)
- func (c *PebbleCache[K, V]) HandleAsyncError(err error)
- func (c *PebbleCache[K, V]) Load(block *theine.DataBlock) error
- func (c *PebbleCache[K, V]) SaveData(blockEncoder *gob.Encoder) error
- func (c *PebbleCache[K, V]) SaveMeta(blockEncoder *gob.Encoder) error
- func (n *PebbleCache[K, V]) Set(key K, value V, cost int64, expire int64) error
- func (c *PebbleCache[K, V]) SetClock(clock *clock.Clock)
- type TheineMem
- type TheineNvm
- type TheinePebble
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PebbleCache ¶
type PebbleCache[K comparable, V any] struct { // contains filtered or unexported fields }
func (*PebbleCache[K, V]) Delete ¶
func (n *PebbleCache[K, V]) Delete(key K) error
func (*PebbleCache[K, V]) Get ¶
func (n *PebbleCache[K, V]) Get(key K) (value V, cost int64, expire int64, ok bool, err error)
func (*PebbleCache[K, V]) HandleAsyncError ¶
func (c *PebbleCache[K, V]) HandleAsyncError(err error)
func (*PebbleCache[K, V]) Load ¶
func (c *PebbleCache[K, V]) Load(block *theine.DataBlock) error
func (*PebbleCache[K, V]) SaveData ¶
func (c *PebbleCache[K, V]) SaveData(blockEncoder *gob.Encoder) error
func (*PebbleCache[K, V]) SaveMeta ¶
func (c *PebbleCache[K, V]) SaveMeta(blockEncoder *gob.Encoder) error
func (*PebbleCache[K, V]) Set ¶
func (n *PebbleCache[K, V]) Set(key K, value V, cost int64, expire int64) error
func (*PebbleCache[K, V]) SetClock ¶
func (c *PebbleCache[K, V]) SetClock(clock *clock.Clock)
type TheineMem ¶
type TheineMem[K comparable, V any] struct { // contains filtered or unexported fields }
type TheineNvm ¶
type TheineNvm[K comparable, V any] struct { KeySerializer theine.Serializer[K] ValueSerializer theine.Serializer[V] // contains filtered or unexported fields }
type TheinePebble ¶
type TheinePebble[K comparable, V any] struct { KeySerializer theine.Serializer[K] ValueSerializer theine.Serializer[V] // contains filtered or unexported fields }
func (*TheinePebble[K, V]) Close ¶
func (c *TheinePebble[K, V]) Close()
func (*TheinePebble[K, V]) Get ¶
func (c *TheinePebble[K, V]) Get(key K) (V, bool)
func (*TheinePebble[K, V]) Init ¶
func (c *TheinePebble[K, V]) Init(cap int)
func (*TheinePebble[K, V]) Metrics ¶
func (c *TheinePebble[K, V]) Metrics() string
func (*TheinePebble[K, V]) Name ¶
func (c *TheinePebble[K, V]) Name() string
func (*TheinePebble[K, V]) Set ¶
func (c *TheinePebble[K, V]) Set(key K, value V)
Click to show internal directories.
Click to hide internal directories.