Method Cache(IRouteDefinition, Func<IExchange, string>, TimeSpan?)

Assembly: redb.Route.Cache.dll

Opens a caching scope with a key computed by key.

public static CacheDefinition Cache(this IRouteDefinition route, Func<IExchange, string> key, TimeSpan? ttl = null)