ApcReflectionCache
- Full name:
\Qubus\Injector\Cache\ApcReflectionCache
- This class implements:
\Qubus\Injector\Cache\ReflectionCache
Properties
cache
timeToLive
Methods
__construct
Instantiate an ApcReflectionCache object.
Parameters:
Parameter | Type | Description |
---|---|---|
$cache | ?\Qubus\Injector\Cache\ReflectionCache |
setTimeToLive
Set the expiry time.
Parameters:
Parameter | Type | Description |
---|---|---|
$seconds | int | The number of seconds that the cache value should live. |
Return Value:
Instance of the cache object.
fetch
Fetch a key from the cache.
Parameters:
Parameter | Type | Description |
---|---|---|
$key | string | The key to fetch. |
Return Value:
Value of the key in the cache, or false if not found.
store
Store the value for a specified key in the cache.
Parameters:
Parameter | Type | Description |
---|---|---|
$key | string | The key for which to store the value. |
$data | mixed | The value to store under the specified key. |
Throws:
Automatically generated on 2025-10-13