public function delete($key)
{
$key = md5($key);
$this->set($key, null);
@unlink($this->tmp_dir . $key);
}
public function testFileSystemCache() { $cache = new FileSystemCacheHandler(); $this->assertNull($cache->get('pepe')); $cache->set('pepe', 'lala'); $this->assertEquals('lala', $cache->get('pepe')); $cache->delete('pepe'); $this->assertNull($cache->get('pepe')); }