Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SyncCache ¶
type SyncCache struct { CacheLength int // readonly, for metrics only to save calculation // contains filtered or unexported fields }
func NewSyncCache ¶
func (*SyncCache) AddCache ¶
func (c *SyncCache) AddCache(ctx api.StreamContext, item any) error
AddCache not thread safe!
func (*SyncCache) Flush ¶
func (c *SyncCache) Flush(ctx api.StreamContext)
Flush save memory states to disk.
Click to show internal directories.
Click to hide internal directories.