Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
plog events cache
Get() returns plog event by handling partition and offset.
Put() puts plog event into cache.
func (*Cache) Get ¶
func (c *Cache) Get(partition istructs.PartitionID, offset istructs.Offset) (e istructs.IPLogEvent, ok bool)
Gets PLOG event on the key from the specified partition and offset
func (*Cache) Put ¶
func (c *Cache) Put(partition istructs.PartitionID, offset istructs.Offset, event istructs.IPLogEvent)
Puts the specified PLOG event on the key from the specified partition and offset
Click to show internal directories.
Click to hide internal directories.