An LRU (Least Recently Used) and MRU (Most Recently Used) cache implementations in PHP.
$cache = new CacheFactory()->createInstance(3);
$cache->put('key', '<value>');
$cache->get('key');use SK\Cache\Type as CacheType;
...
$cache = new CacheFactory()->createInstance(3, CacheType::MRU);
...composer run test