1 | <?php |
||
19 | abstract class AbstractCache implements CacheInterface |
||
20 | { |
||
21 | |||
22 | protected $prefix = 'bouncer'; |
||
23 | |||
24 | /** |
||
25 | * {@inheritDoc} |
||
26 | */ |
||
27 | public function clean() |
||
30 | |||
31 | /** |
||
32 | * {@inheritDoc} |
||
33 | */ |
||
34 | public function flush() |
||
37 | |||
38 | /** |
||
39 | * Return an Identity object from cache |
||
40 | * |
||
41 | * @param string $id identifier for the identity |
||
42 | * |
||
43 | * @return object|null |
||
44 | */ |
||
45 | public function getIdentity($id) |
||
49 | |||
50 | /** |
||
51 | * Store an Identity object in cache |
||
52 | * |
||
53 | * @param string $id identifier for the identity |
||
54 | * @param object $identity identity object |
||
55 | */ |
||
56 | public function setIdentity($id, $identity) |
||
60 | |||
61 | /** |
||
62 | * Remove an Identity object from cache |
||
63 | * |
||
64 | * @param string $id identifier for the identity |
||
65 | */ |
||
66 | public function deleteIdentity($id) |
||
70 | |||
71 | } |
||
72 |