@@ -16,10 +16,10 @@ discard block |
||
| 16 | 16 | */ |
| 17 | 17 | public function __construct(array $config) |
| 18 | 18 | { |
| 19 | - $this->handler= new \Memcached($config['bucket']); |
|
| 19 | + $this->handler = new \Memcached($config['bucket']); |
|
| 20 | 20 | $this->handler->setOption(\Memcached::OPT_LIBKETAMA_COMPATIBLE, true); |
| 21 | 21 | $this->handler->setOption(\Memcached::OPT_BINARY_PROTOCOL, true); |
| 22 | - if(\Memcached::HAVE_IGBINARY){ |
|
| 22 | + if (\Memcached::HAVE_IGBINARY) { |
|
| 23 | 23 | ini_set("memcached.serializer", "igbinary"); |
| 24 | 24 | } |
| 25 | 25 | if (!count($this->handler->getServerList())) { |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | * |
| 53 | 53 | * @return bool True on success and false on failure |
| 54 | 54 | */ |
| 55 | - public function set($key, $value, $ttl = null){ |
|
| 55 | + public function set($key, $value, $ttl = null) { |
|
| 56 | 56 | return $this->handler->set($key, $value, intval($ttl)); |
| 57 | 57 | } |
| 58 | 58 | /** |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | * |
| 63 | 63 | * @return bool True on success and false on failure |
| 64 | 64 | */ |
| 65 | - public function delete($key){ |
|
| 65 | + public function delete($key) { |
|
| 66 | 66 | return (bool) $this->handler->delete($key); |
| 67 | 67 | } |
| 68 | 68 | /** |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | * |
| 71 | 71 | * @return bool True on success and false on failure |
| 72 | 72 | */ |
| 73 | - public function clear(){ |
|
| 73 | + public function clear() { |
|
| 74 | 74 | return $this->handler->flush(); |
| 75 | 75 | } |
| 76 | 76 | /** |