| 1 | <?php |
||
| 7 | class CacheWrapper implements SimpleCacheInterface |
||
| 8 | { |
||
| 9 | protected $dataStore; |
||
| 10 | |||
| 11 | public function __construct($dataStore) |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Test for an entry from the cache |
||
| 18 | * @param string $key |
||
| 19 | * @return boolean |
||
| 20 | */ |
||
| 21 | public function has($key) |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Get an entry from the cache |
||
| 32 | * @param string $key |
||
| 33 | * @return array |
||
| 34 | */ |
||
| 35 | public function get($key) |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Store an entry in the cache |
||
| 42 | * @param string $key |
||
| 43 | * @param array $data |
||
| 44 | */ |
||
| 45 | public function set($key, $data) |
||
| 49 | } |
||
| 50 |