CacheMiddleware constructor

CacheMiddleware({
  1. Set<String>? cacheableMethods,
  2. Duration ttl = const Duration(seconds: 15),
})

Implementation

CacheMiddleware({
  Set<String>? cacheableMethods,
  this.ttl = const Duration(seconds: 15),
}) : cacheableMethods = cacheableMethods ?? {'eth_chainId', 'net_version'};