| @@ 142-153 (lines=12) @@ | ||
| 139 | * |
|
| 140 | * @return mixed |
|
| 141 | */ |
|
| 142 | public function get($key) |
|
| 143 | { |
|
| 144 | static $memcachedCache; |
|
| 145 | ||
| 146 | if (isset($memcachedCache[$key])) { |
|
| 147 | return $memcachedCache[$key]; |
|
| 148 | } else { |
|
| 149 | $return = $this->memcache->get($key); |
|
| 150 | $memcachedCache[$key] = $return; |
|
| 151 | return $return; |
|
| 152 | } |
|
| 153 | } |
|
| 154 | ||
| 155 | /** |
|
| 156 | * check if cache is installed |
|
| @@ 133-144 (lines=12) @@ | ||
| 130 | * |
|
| 131 | * @return mixed |
|
| 132 | */ |
|
| 133 | public function get($key) |
|
| 134 | { |
|
| 135 | static $memcachedCache; |
|
| 136 | ||
| 137 | if (isset($memcachedCache[$key])) { |
|
| 138 | return $memcachedCache[$key]; |
|
| 139 | } else { |
|
| 140 | $return = $this->memcached->get($key); |
|
| 141 | $memcachedCache[$key] = $return; |
|
| 142 | return $return; |
|
| 143 | } |
|
| 144 | } |
|
| 145 | ||
| 146 | /** |
|
| 147 | * check if cache is installed |
|