Cache Preferences
Enable or disable Redis-backed caching for matches and expected transactions.
What are cache preferences
Cache preferences control Redis-backed caching. They are part of TenantSetting.cachePreferences. Caching improves performance when the same matches or expected transactions are queried repeatedly—e.g. during bulk matching or when listing expected transactions for many incoming.
Attributes
| Attribute | Purpose |
|---|---|
| matchCacheEnabled | Cache match results. Default: true. Disable if you need always-fresh results. |
| expectedCacheEnabled | Cache expected transactions for matching. Default: true. Disable for real-time expected updates. |
When to disable
- matchCacheEnabled — Disable when match results must reflect the latest expected/incoming state immediately.
- expectedCacheEnabled — Disable when expected transactions are created or updated frequently and must be included in matching without delay.
Cache TTL and key prefix are configured via environment variables (CACHE_MATCH_TTL_MS, CACHE_EXPECTED_TTL_MS, CACHE_KEY_PREFIX).
Related
- Tenant Settings — Parent structure
- Infrastructure — Redis