ResourceCheckerConfigCache
class ResourceCheckerConfigCache implements ConfigCacheInterface
ResourceCheckerConfigCache uses instances of ResourceCheckerInterface to check whether cached data is still fresh.
Methods
__construct(string $file, array $resourceCheckers = array())
No description
string
getPath()
Gets the cache file path.
bool
isFresh()
Checks if the cache is still fresh.
write(string $content, array $metadata = null)
Writes cache.
Details
at line line 40
__construct(string $file, array $resourceCheckers = array())
at line line 49
string
getPath()
Gets the cache file path.
at line line 65
bool
isFresh()
Checks if the cache is still fresh.
This implementation will make a decision solely based on the ResourceCheckers passed in the constructor.
The first ResourceChecker that supports a given resource is considered authoritative. Resources with no matching ResourceChecker will silently be ignored and considered fresh.
at line line 109
write(string $content, array $metadata = null)
Writes cache.