mirror of
https://github.com/kennethnym/aris.git
synced 2026-03-20 09:01:19 +00:00
feat: add caching to FeedEngine
Add lastFeed() method that returns cached FeedResult within a configurable TTL (default 5 min). refresh() always fetches fresh data and updates the cache. Periodic auto-refresh via recursive setTimeout when engine is started. Reactive updates reset the timer to avoid redundant fetches. Co-authored-by: Ona <no-reply@ona.com>
This commit is contained in:
@@ -13,7 +13,7 @@ export type { FeedItem } from "./feed"
|
||||
export type { FeedSource } from "./feed-source"
|
||||
|
||||
// Feed Engine
|
||||
export type { FeedResult, FeedSubscriber, SourceError } from "./feed-engine"
|
||||
export type { FeedEngineConfig, FeedResult, FeedSubscriber, SourceError } from "./feed-engine"
|
||||
export { FeedEngine } from "./feed-engine"
|
||||
|
||||
// =============================================================================
|
||||
|
||||
Reference in New Issue
Block a user