Skip to main content
Caching is always enabled in Blocklight to optimize performance and reduce RPC calls. Configure cache TTL (Time To Live) in analysis configuration.

Cache Strategy

Blocklight uses in-memory caching with configurable TTLs:
  • Transactions: 5 minutes TTL (default) - recent transaction data

Configuration

Configure cache TTLs in config.yaml:
analysis:
  transaction:
    cache_ttl_seconds: 300   # 5 minutes (min: 60, max: 86400)

Performance Impact

Caching significantly reduces RPC calls and improves latency:
  • Transaction receipts: Cached for 5 minutes to balance freshness and performance
Caching is crucial when using array methods and analyzing transaction data, as it prevents redundant RPC calls for the same contract addresses.