Documentation ¶
Overview ¶
Implement expiry within the the actual value storage The underlying store will need to use this when Inserting/Retrieving
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type StoreEntry ¶
type StoreEntry struct { Value []byte expiry.ExpiryRecord }
StoreEntry retains the efficiency of ExpiryRecord Further encodes the expiry in the the Value
func DecodeStoreEntry ¶
func DecodeStoreEntry(key, value []byte) StoreEntry
Decode the raw bytes into the StoreEntry type
func (*StoreEntry) Encode ¶
func (e *StoreEntry) Encode() (key, value []byte)
type StoreExpiry ¶
func NewStoreExpiry ¶
func NewStoreExpiry(compactorFunc func(), compactionInterval time.Duration) (*StoreExpiry, error)
func (*StoreExpiry) NewStoreEntry ¶
func (s *StoreExpiry) NewStoreEntry(key string, value []byte, ttl time.Duration) StoreEntry
Click to show internal directories.
Click to hide internal directories.