Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
wp-content
/
plugins
/
sitepress-multilingual-cms
/
vendor
/
otgs
/
auryn
/
lib
:
ReflectionCacheArray.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php namespace WPML\Auryn; class ReflectionCacheArray implements ReflectionCache { private $cache = array(); public function fetch($key) { // The additional isset() check here improves performance but we also // need array_key_exists() because some cached values === NULL. return (isset($this->cache[$key]) || array_key_exists($key, $this->cache)) ? $this->cache[$key] : false; } public function store($key, $data) { $this->cache[$key] = $data; } }