Class DefaultCacheKeyProvider
Default cache key strategy that uses all but the body of a request for the key. Add a cache.key_filter parameter to a request to modify what gets cached.
cache.key_filter is a string containing semicolon separated values. Each value contains a comma separated list of things to filter from the key. The currently supported filters are 'header' and 'query'. For example, to filter out the 'X-Foo' header, the 'X-Bar' header, and the 'test' query string value, set the filter to "header=X-Foo,X-Bar; query=test"
- Guzzle\Plugin\Cache\DefaultCacheKeyProvider implements Guzzle\Plugin\Cache\CacheKeyProviderInterface
public
string
|
#
getCacheKey(
Returns a cache key for a request object |
string |
CACHE_KEY
|
'cache.key' |
#
Request parameter holding the cache key |
string |
CACHE_KEY_FILTER
|
'cache.key_filter' |
#
Request parameter holding the cache key filter settings |
string |
CACHE_KEY_RAW
|
'cache.raw_key' |
#
Request parameter holding the raw key |