$cacheDir
$cacheDir :
File cache provider may be used by the DeviceApi and DeviceApiWeb to cache the detected properties. Using cache improves the performance by not doing unnecessary lookups in the data files.
__construct( $cacheItemExpiry = 86400, $cacheDir = null)
Construct a CacheProvider object.
$cacheItemExpiry | ||
$cacheDir |
get( $key) : mixed
Get a stored value form cache.
$key |
the cached value or null if the key does not exist in cache
put( $key, $value) : boolean
Store a value in cache.
$key | ||
$value |
true=cache stored
delete( $key) : boolean
Remove an item from the cache.
$key |
true=cache deleted
clear() : boolean
Clear the whole cache.
Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275true=cache cleared
rmdir( $dir, $empty = false)
$dir | ||
$empty |
cachePath( $key, $createDirectory = false)
$key | ||
$createDirectory |