Core Class
View Source on Trac ↗
Core Class
Psr16
class Psr16
// Constructor: function Object() { [native code] } Caches data into a PSR-16 cache implementation
Methods 4 methods
| Method / Return | Description |
|---|---|
| __construct() void | PSR-16 cache implementation
Parameters: $cache: CacheInterface |
| get_data() (array | Fetches a value from the cache.
Parameters: $key: string, $default: mixed |
| set_data() bool | Persists data in the cache, uniquely referenced by a key with an optional expiration TTL time.
Parameters: $key: string, $value: array, $ttl: ?int |
| delete_data() bool | Delete an item from the cache by its unique key.
Parameters: $key: string |
Properties
| Property / Type | Description |
|---|---|
| $cache mixed public | No description available. |
Class Information
Source File
wp-includes/SimplePie/src/Cache/Psr16.php
Advertisement