Method Cache(IRouteDefinition, string, TimeSpan?)

Assembly: redb.Route.Cache.dll

Opens a caching scope keyed by a route-language template ("customer-${header.customerId}").
On a hit the inner steps are skipped and the cached body is the message; on a miss they run and
the result is stored for ttl. Close with EndCache().

public static CacheDefinition Cache(this IRouteDefinition route, string keyTemplate, TimeSpan? ttl = null)