Versions in this module Expand all Collapse all v0 v0.3.0 Oct 26, 2026 Changes in this version + var ErrBufferFull = errors.New("timeline manager: pending save limit exceeded") + var ErrClosed = errors.New("timeline manager: shut down") + type Cache struct + func New(backend store.Store, config Config) (*Cache, error) + func NewStandalone(backend store.Store) (*Cache, error) + func (c *Cache) Closed() bool + func (c *Cache) Evict(id string) + func (c *Cache) Flush(ctx context.Context, id string, wait bool) error + func (c *Cache) Read(ctx context.Context, id string, fresh bool) (model.Snapshot, error) + func (c *Cache) Shutdown(ctx context.Context) error + func (c *Cache) Stats() Stats + func (c *Cache) Update(ctx context.Context, id string, fn func(store.Document) (store.Update, error)) error + func (c *Cache) Write(ctx context.Context, id string, update store.Update) error + type Config struct + Actor model.Actor + BatchLimit int + ExportTimeout time.Duration + FlushInterval time.Duration + LoadInterval time.Duration + MaxPendingTimelines int + MaxPendingUpdates int + MaxTimelines int + OnError func(id string, err error) + type Stats struct + CachedTimelines int + DroppedUpdates uint64 + PendingTimelines int + PendingUpdates int + RejectedUpdates uint64