@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | $driver = $factory->create("WebStream\Cache\Driver\Apcu"); |
32 | 32 | break; |
33 | 33 | case "memcached": |
34 | - $cacheConfig = \Spyc::YAMLLoad($this->getApplicationRoot() . '/config/cache.yml'); |
|
34 | + $cacheConfig = \Spyc::YAMLLoad($this->getApplicationRoot().'/config/cache.yml'); |
|
35 | 35 | if (array_key_exists('memcached', $cacheConfig)) { |
36 | 36 | $config = new Container(false); |
37 | 37 | $config->servers = [$cacheConfig['host'], $cacheConfig['port']]; |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | } |
40 | 40 | break; |
41 | 41 | case "redis": |
42 | - $cacheConfig = \Spyc::YAMLLoad($this->getApplicationRoot() . '/config/cache.yml'); |
|
42 | + $cacheConfig = \Spyc::YAMLLoad($this->getApplicationRoot().'/config/cache.yml'); |
|
43 | 43 | if (array_key_exists('redis', $cacheConfig)) { |
44 | 44 | $config = new Container(false); |
45 | 45 | $config->host = $cacheConfig['host']; |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | */ |
51 | 51 | public function add(string $content) |
52 | 52 | { |
53 | - $this->driver->add($this->key . $this->index++, $content); |
|
53 | + $this->driver->add($this->key.$this->index++, $content); |
|
54 | 54 | } |
55 | 55 | |
56 | 56 | /** |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | { |
62 | 62 | $list = []; |
63 | 63 | for ($i = 0; $i < $this->index; $i++) { |
64 | - $list[] = $this->driver->get($this->key . $i); |
|
64 | + $list[] = $this->driver->get($this->key.$i); |
|
65 | 65 | } |
66 | 66 | |
67 | 67 | return $list; |