for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace MidasSoft\DominicanBankParser\Cache;
class ArrayCacheDriver extends AbstractCacheDriver
{
/**
* The data container.
*
* @var array
*/
protected $data;
* Adds a new value to the cache.
* @param string $key
* @param mixed $value
* @return void
public function add($key, $value)
$this->data[$key] = serialize($value);
$this->keys[] = $key;
}
* Recovers a value from the cache.
* @return mixed
public function get($key)
return unserialize($this->data[$key]);
* Returns the data property.
public function getData()
return $this->data;
* Removes a value from the cache.
public function remove($key)
unset($this->data[$key]);