Skip to content

eufy-mega / core/contracts / DEFAULT_SNAPSHOT_CACHE_MS

Variable: DEFAULT_SNAPSHOT_CACHE_MS

ts
const DEFAULT_SNAPSHOT_CACHE_MS: 6000 = 6000;

Default cache window for MediaProvider.snapshot — a repeated poll inside this window reuses the last still instead of re-hitting the device. Lives with the contract, not the implementation, so a caller reading MediaProvider can see the value it is overriding with cacheTtlMs.

Independent and unofficial. Not affiliated with, endorsed by, or sponsored by Anker Innovations or eufy. "eufy" and "Anker" are trademarks of their respective owners. Use responsibly — rapid or failed logins can trigger captcha or temporary cooldowns.