wp-update-server-plugin/vendor/yahnis-elsts/wp-update-server/includes/Wpup/Cache.php
2025-05-25 16:31:17 -06:00

31 lines
545 B
PHP

<?php
/**
* A very basic cache interface.
*/
interface Wpup_Cache {
/**
* Get cached value.
*
* @param string $key
* @return mixed|null
*/
function get($key);
/**
* Update the cache.
*
* @param string $key Cache key.
* @param mixed $value The value to store in the cache.
* @param int $expiration Time until expiration, in seconds. Optional.
* @return void
*/
function set($key, $value, $expiration = 0);
/**
* Clear a cache
*
* @param string $key Cache key.
* @return void
*/
function clear($key);
}