/** @var array Array with the cached data */
protected $cachedData = array();
+ /**
+ * (@inheritdoc)
+ */
+ public function getAllKeys($prefix = null)
+ {
+ return $this->filterArrayKeysByPrefix($this->cachedData, $prefix);
+ }
+
/**
* (@inheritdoc)
*/
*/
public function clear($outdated = true)
{
+ // Array doesn't support TTL so just don't delete something
+ if ($outdated) {
+ return true;
+ }
+
$this->cachedData = [];
return true;
}