HasCaching
trait HasCaching
Properties
| protected bool | $cachingEnabled | Whether caching is enabled for this request. |
|
| protected bool | $invalidateCache | Whether the matching cache entry should be invalidated. |
Methods
Enable caching for this request.
Disable caching for this request.
Invalidate and refresh the matching cache entry.
Get the cache store name.
Determine if this request defines cache controls.
Determine if request caching is enabled.
Determine if the matching entry should be invalidated.
Resolve the cacheable HTTP methods.
Define the cacheable HTTP methods.
Details
at line 29
HasCaching
enableCaching()
Enable caching for this request.
at line 41
HasCaching
disableCaching()
Disable caching for this request.
at line 53
HasCaching
invalidateCache()
Invalidate and refresh the matching cache entry.
at line 63
void
clearCache(Connector $counterpart)
Clear the cached response without sending the request.
at line 71
UnitEnum|string|null
cacheStore()
Get the cache store name.
at line 81
final bool
usesCachingControls()
| internal |
Determine if this request defines cache controls.
at line 91
final bool
cachingEnabled()
| internal |
Determine if request caching is enabled.
at line 101
final bool
shouldInvalidateCache()
| internal |
Determine if the matching entry should be invalidated.
at line 111
final string|null
resolveCacheKey(PendingRequest $pendingRequest)
| internal |
Resolve the custom cache key.
at line 122
final array|null
resolveCacheableMethods()
| internal |
Resolve the cacheable HTTP methods.
at line 130
protected string|null
cacheKey(PendingRequest $pendingRequest)
Define a custom cache key.
at line 140
protected array|null
cacheableMethods()
Define the cacheable HTTP methods.