1 | <?php |
||
6 | class Ram implements CacheInterface |
||
7 | { |
||
8 | protected $params = array(); |
||
9 | |||
10 | /** |
||
11 | * constructor of Ram |
||
12 | * @param array $params |
||
13 | */ |
||
14 | 5 | public function __construct($params = array()) |
|
18 | |||
19 | /** |
||
20 | * set a param |
||
21 | * @param string $key |
||
22 | * @param mixed $value |
||
23 | * @return \FMUP\Cache\Driver\Ram |
||
24 | */ |
||
25 | 2 | public function set($key, $value) |
|
30 | |||
31 | /** |
||
32 | * get a param |
||
33 | * @param string $key |
||
34 | * @return mixed|null |
||
35 | */ |
||
36 | 2 | public function get($key) |
|
40 | |||
41 | /** |
||
42 | * has a param |
||
43 | * @param string $key |
||
44 | * @return bool |
||
45 | */ |
||
46 | 6 | public function has($key) |
|
50 | |||
51 | /** |
||
52 | * remove a param in object |
||
53 | * @param string $key |
||
54 | * @return \FMUP\Cache\Driver\Ram |
||
55 | */ |
||
56 | 2 | public function remove($key) |
|
61 | } |
||
62 |