mixed $value * * and PSR-6 defines: * * function getItem($key) => ItemInterface $item * * These are different styles (e.g. "weak item" vs "strong item"), * but the two methods do not *conflict*. They can coexist, * and you can trivially write adapters between the two. * * @see https://github.com/php-fig/fig-standards/blob/master/proposed/cache.md */ interface CRM_Utils_Cache_Interface { /** * Set the value in the cache. * * @param string $key * @param mixed $value */ public function set($key, &$value); /** * Get a value from the cache. * * @param string $key * @return mixed * NULL if $key has not been previously set */ public function get($key); /** * Delete a value from the cache. * * @param string $key */ public function delete($key); /** * Delete all values from the cache. */ public function flush(); }