| @@ 45-57 (lines=13) @@ | ||
| 42 | * |
|
| 43 | * @since __DEPLOY_VERSION__ |
|
| 44 | */ |
|
| 45 | public function getItem($key) |
|
| 46 | { |
|
| 47 | $success = false; |
|
| 48 | $value = apcu_fetch($key, $success); |
|
| 49 | $item = new Item($key); |
|
| 50 | ||
| 51 | if ($success) |
|
| 52 | { |
|
| 53 | $item->set($value); |
|
| 54 | } |
|
| 55 | ||
| 56 | return $item; |
|
| 57 | } |
|
| 58 | ||
| 59 | /** |
|
| 60 | * Returns a traversable set of cache items. |
|
| @@ 45-57 (lines=13) @@ | ||
| 42 | * |
|
| 43 | * @since __DEPLOY_VERSION__ |
|
| 44 | */ |
|
| 45 | public function getItem($key) |
|
| 46 | { |
|
| 47 | $item = new Item($key); |
|
| 48 | $success = true; |
|
| 49 | $value = wincache_ucache_get($key, $success); |
|
| 50 | ||
| 51 | if ($success) |
|
| 52 | { |
|
| 53 | $item->set($value); |
|
| 54 | } |
|
| 55 | ||
| 56 | return $item; |
|
| 57 | } |
|
| 58 | ||
| 59 | /** |
|
| 60 | * Removes the item from the pool. |
|