| @@ -14,8 +14,11 @@ | ||
| 14 | 14 | public function get($key) |
| 15 | 15 | { |
| 16 | 16 | return $this->cache->fetch($key); |
| 17 | 17 | } |
| 18 | + /** | |
| 19 | + * @return mixed | |
| 20 | + */ | |
| 18 | 21 | public function fetch($key) |
| 19 | 22 | { |
| 20 | 23 | return $this->get($key); |
| 21 | 24 | } |
| @@ -22,8 +25,11 @@ | ||
| 22 | 25 | public function set($key, $value, $ttl = 0) |
| 23 | 26 | { |
| 24 | 27 | return $this->cache->save($key, $value, $ttl); |
| 25 | 28 | } |
| 29 | + /** | |
| 30 | + * @return bool | |
| 31 | + */ | |
| 26 | 32 | public function save($key, $value, $ttl = 0) |
| 27 | 33 | { |
| 28 | 34 | return $this->set($key, $value, $ttl); |
| 29 | 35 | } |
| @@ -30,16 +36,25 @@ | ||
| 30 | 36 | public function remove($key) |
| 31 | 37 | { |
| 32 | 38 | return $this->cache->delete($key); |
| 33 | 39 | } |
| 40 | + /** | |
| 41 | + * @return bool | |
| 42 | + */ | |
| 34 | 43 | public function delete($key) |
| 35 | 44 | { |
| 36 | 45 | return $this->remove($key); |
| 37 | 46 | } |
| 47 | + /** | |
| 48 | + * @return bool | |
| 49 | + */ | |
| 38 | 50 | public function contains($key) |
| 39 | 51 | { |
| 40 | 52 | return $this->cache->contains($key); |
| 41 | 53 | } |
| 54 | + /** | |
| 55 | + * @return mixed[]|null | |
| 56 | + */ | |
| 42 | 57 | public function getStats() |
| 43 | 58 | { |
| 44 | 59 | return $this->cache->getStats(); |
| 45 | 60 | } |