FinchRouteExtension extension
Extension on FinchRoute to provide an easy way to wrap routes with caching.
- on
Methods
-
cache(
{Duration cacheDuration = const Duration(minutes: 10), List< CacheParam> cacheType = const [CacheParam.method, CacheParam.path], CacheSource cacheSource = CacheSource.memory}) → RouteCache -
Available on FinchRoute, provided by the FinchRouteExtension extension
Wraps the current FinchRoute with a RouteCache to enable response caching.