| @@ 132-143 (lines=12) @@ | ||
| 129 | * |
|
| 130 | * @return mixed |
|
| 131 | */ |
|
| 132 | public function get($key) |
|
| 133 | { |
|
| 134 | static $memcachedCache; |
|
| 135 | ||
| 136 | if (isset($memcachedCache[$key])) { |
|
| 137 | return $memcachedCache[$key]; |
|
| 138 | } else { |
|
| 139 | $return = $this->memcache->get($key); |
|
| 140 | $memcachedCache[$key] = $return; |
|
| 141 | return $return; |
|
| 142 | } |
|
| 143 | } |
|
| 144 | ||
| 145 | /** |
|
| 146 | * check if cache is installed |
|
| @@ 126-137 (lines=12) @@ | ||
| 123 | * |
|
| 124 | * @return mixed |
|
| 125 | */ |
|
| 126 | public function get($key) |
|
| 127 | { |
|
| 128 | static $memcachedCache; |
|
| 129 | ||
| 130 | if (isset($memcachedCache[$key])) { |
|
| 131 | return $memcachedCache[$key]; |
|
| 132 | } else { |
|
| 133 | $return = $this->memcached->get($key); |
|
| 134 | $memcachedCache[$key] = $return; |
|
| 135 | return $return; |
|
| 136 | } |
|
| 137 | } |
|
| 138 | ||
| 139 | /** |
|
| 140 | * check if cache is installed |
|