Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SyncCache ¶
type SyncCache struct {
RuleID string
OpID string
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.
func (*SyncCache) InitStore ¶ added in v2.0.5
func (c *SyncCache) InitStore(ctx api.StreamContext) error
func (*SyncCache) PopCache ¶
func (c *SyncCache) PopCache(ctx api.StreamContext) (any, bool)
PopCache not thread safe!
func (*SyncCache) SetupMeta ¶ added in v2.0.7
func (c *SyncCache) SetupMeta(ctx api.StreamContext)
Click to show internal directories.
Click to hide internal directories.