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 28
HasCaching
enableCaching()
Enable caching for this request.
at line 40
HasCaching
disableCaching()
Disable caching for this request.
at line 52
HasCaching
invalidateCache()
Invalidate and refresh the matching cache entry.
at line 62
UnitEnum|string|null
cacheStore()
Get the cache store name.
at line 72
final bool
usesCachingControls()
| internal |
Determine if this request defines cache controls.
at line 82
final bool
cachingEnabled()
| internal |
Determine if request caching is enabled.
at line 92
final bool
shouldInvalidateCache()
| internal |
Determine if the matching entry should be invalidated.
at line 102
final string|null
resolveCacheKey(PendingRequest $pendingRequest)
| internal |
Resolve the custom cache key.
at line 113
final array|null
resolveCacheableMethods()
| internal |
Resolve the cacheable HTTP methods.
at line 121
protected string|null
cacheKey(PendingRequest $pendingRequest)
Define a custom cache key.
at line 131
protected array|null
cacheableMethods()
Define the cacheable HTTP methods.