-
Notifications
You must be signed in to change notification settings - Fork 42
Open
Labels
Milestone
Description
First take: eternal cache with manual cleanup.
- Cache is opt-in (should be explicitly turned on through config or
Reality.cache!) - Cache path should be configured (with reasonable default somewhere in
/tmp?..) - Each entity is cached by name, in two separate file: wikipedia data & wikidata data (we cache source, not parsed entity, because after adding new parsers richer data can be extracted from same cached source; drawback is parsing speed)
- There should be way to query if entity is from cache or from the wild (or, alternatively, how old is it)
- Dictionaries (lists) caching.
In future, we should consider:
- TTL settins (even per-entity);
- Explicity refreshing entity or invalidating cache;
- Methods, if possible, for meta-query Wikipedia/Wikidata "if the page changed" (for cached pages), and load them only in this case.