Documentation ¶
Index ¶
- Variables
- type Cache
- func (c *Cache) Close() error
- func (c *Cache) Delete(key string)
- func (c *Cache) DeleteRange(min, max uint64) error
- func (c *Cache) FirstIndex() (uint64, error)
- func (c *Cache) Get(key string) (resp []byte, ok bool)
- func (c *Cache) GetLog(idx uint64, log *raft.Log) error
- func (c *Cache) GetUint64(key []byte) (uint64, error)
- func (c *Cache) LastIndex() (uint64, error)
- func (c *Cache) Set(key string, resp []byte)
- func (c *Cache) SetUint64(key []byte, val uint64) error
- func (c *Cache) StoreLog(log *raft.Log) error
- func (c *Cache) StoreLogs(logs []*raft.Log) error
- type Config
Constants ¶
This section is empty.
Variables ¶
View Source
var ( PluginConfig = &badgerRaftCacheConfig{ done: make(chan struct{}), } )
Config ...
Functions ¶
This section is empty.
Types ¶
type Cache ¶
Cache stores and retrieves data using Badger KV.
func (*Cache) DeleteRange ¶
func (*Cache) FirstIndex ¶
Click to show internal directories.
Click to hide internal directories.