get the response future from the cache, or execute the request, put its response future into the cache, and return it.
get the response future from the cache, or execute the request, put its response future into the cache, and return it.
the request whose corresponding response to look for in the cache
fallback behavior that is triggered during a cache miss. result is cached.
the response, wrapped in a future. the future will be completed when the request finishes, regardless of whether it was cached
get the given request from the cache.
get the given request from the cache. execute cacheHit if it was found, or cacheMiss if not
the request to get
the function to execute if there was a cache hit. the cache will be replaced by the returned future.
the function to execute if there was a cache miss. the cache will be replaced by the returned future.
the response, wrapped in a future. if there was a cache hit, the future will be completed when the future returned by cacheHit does. if there was a cache miss, the future will be completed when the future returned by cacheMiss does.