Documentation ¶
Index ¶
- type Cache
- func (c *Cache) Apply(log *raft.Log) any
- func (c *Cache) Del(key string) error
- func (c *Cache) Dump() <-chan string
- func (c *Cache) Get(key string) (*CacheValue, error)
- func (c *Cache) Has(key string) bool
- func (c *Cache) Restore(snapshot io.ReadCloser) error
- func (c *Cache) Set(key string, value *CacheValue) error
- func (c *Cache) Snapshot() (raft.FSMSnapshot, error)
- type CacheValue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheValue ¶
Click to show internal directories.
Click to hide internal directories.