Inactive queries (no subscribers) are automatically garbage-collected after their cache-time-ms expires. This uses per-query timers, following the same model as TanStack Query and RTK Query:
setTimeout starts with cache-time-msapp-db (only if still inactive)| Config | Default | Description |
|---|---|---|
:cache-time-ms | 300000 (5 min) | Time before inactive query is GC'd |
:stale-time-ms | none | Time before data is considered stale |
Timer handles are stored in a side-channel atom (not in app-db) to keep the re-frame store fully serializable.
Can you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |