buildCacheKey: Construct a unique cache key for a request

Description Usage Arguments Value

Description

This function encapsulates the logic of making a cache key, allowing other code or libraries to access the HTTP cache programmatically.

Usage

1
buildCacheKey(url, query = NULL, body = NULL, extras = c())

Arguments

url

character request URL

query

Optional query parameters for the request

body

Optional request body

extras

character Optional additional annotations to include in the cache key.

Value

Character value, starting with url and including hashed query and body values if provided, to be used as the cache key for this request.


httpcache documentation built on Jan. 13, 2021, 7:46 p.m.