$name
$name :
Class to store all theme/plugin transients as an array in one WordPress transient
__construct(string $name)
Constructor which sets cache options and the name of the field that lists this plugin's cache keys.
| string | $name | The name of the field that lists all cache keys. |
all_keys() : mixed
Get the transient that lists all the other transients for this plugin.
Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jstegall/Sites/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jstegall/Sites/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293value of transient. False of empty, otherwise array.
set(string $cachekey, mixed $value, $cache_expiration) : mixed
Set individual transient, and add its key to the list of this plugin's transients.
| string | $cachekey | the key for this cache item |
| mixed | $value | the value of the cache item |
| $cache_expiration |
value of transient. False of empty, otherwise array.
get(string $cachekey) : mixed
Get the individual cache value
| string | $cachekey | the key for this cache item |
value of transient. False of empty, otherwise array.
delete(string $cachekey) : boolean
Delete the individual cache value
| string | $cachekey | the key for this cache item |
True if successful, false otherwise.
flush() : boolean
Delete the entire cache for this plugin
Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jstegall/Sites/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jstegall/Sites/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293True if successful, false otherwise.