| 1 | <?php |
||
| 19 | abstract class AbstractCache implements CacheInterface |
||
| 20 | { |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Return an Identity object from cache |
||
| 24 | * |
||
| 25 | * @param string $id identifier for the identity |
||
| 26 | * |
||
| 27 | * @return object|null |
||
| 28 | */ |
||
| 29 | public function getIdentity($id) |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Store an Identity object in cache |
||
| 36 | * |
||
| 37 | * @param string $id identifier for the identity |
||
| 38 | * @param object $identity identity object |
||
| 39 | */ |
||
| 40 | public function setIdentity($id, $identity) |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Remove an Identity object from cache |
||
| 47 | * |
||
| 48 | * @param string $id identifier for the identity |
||
| 49 | */ |
||
| 50 | public function deleteIdentity($id) |
||
| 54 | |||
| 55 | } |
||
| 56 |