<?php
namespace Maatwebsite\Excel\Cache;
use Psr\SimpleCache\CacheInterface;
class MemoryCacheDeprecated implements CacheInterface
{
protected $memoryLimit;
protected $cache = [];
public function __construct(int $memoryLimit = null)
{
$this->memoryLimit = $memoryLimit;
}
public function clear()
{
$this->cache = [];
return true;
}
public function delete($key)
{
unset($this->cache[$key]);
return true;
}