first commit

This commit is contained in:
2023-09-12 21:41:04 +02:00
commit 3361a7f053
13284 changed files with 2116755 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
<?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;
}
}