|
| __construct ($data, $ttl) |
| Constructs a ttl cache wrapper.
|
|
| has_expired () |
| Returns true if the data has expired.
|
|
|
mixed | $data |
| The data being stored.
|
|
int | $expires |
| When the cache data expires as a timestamp.
|
|
- Copyright
- 2012 Sam Hemelryk
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
core_cache\ttl_wrapper::__construct |
( |
| $data, |
|
|
| $ttl ) |
Constructs a ttl cache wrapper.
- Parameters
-
mixed | $data | |
int | $ttl | The time to live in seconds. |
◆ has_expired()
core_cache\ttl_wrapper::has_expired |
( |
| ) |
|
Returns true if the data has expired.
- Return values
-
The documentation for this class was generated from the following file:
- cache/classes/ttl_wrapper.php