WPDev.one
Core Class

BaseDataCache

class BaseDataCache // Constructor: function Object() { [native code] }

Adapter for deprecated \SimplePie\Cache\Base implementations

Methods 4 methods

Method / Return Description
__construct()
void

No description available.

Parameters: $cache: Base
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/BaseDataCache.php
Advertisement