for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Bouncer package.
*
* (c) François Hodierne <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Bouncer\Cache;
/**
* Base Cache class providing the Cache structure
* @author François Hodierne <[email protected]>
abstract class AbstractCache implements CacheInterface
{
* Return an Identity object from cache
* @param string $id identifier for the identity
* @return object|null
public function getIdentity($id)
return $this->get("access_watch_identity_{$id}");
}
* Store an Identity object in cache
* @param object $identity identity object
public function setIdentity($id, $identity)
return $this->set("access_watch_identity_{$id}", $identity, 86400);
* Remove an Identity object from cache
public function deleteIdentity($id)
return $this->delete("access_watch_identity_{$id}");