File tree Expand file tree Collapse file tree 1 file changed +4
-16
lines changed Expand file tree Collapse file tree 1 file changed +4
-16
lines changed Original file line number Diff line number Diff line change 5
5
use React \Cache \CacheInterface ;
6
6
use React \EventLoop \LoopInterface ;
7
7
use React \Promise \PromiseInterface ;
8
- use seregazhuk \React \Memcached \Client ;
9
8
use seregazhuk \React \Memcached \Factory as ClientFactory ;
10
9
11
- class Memcached implements CacheInterface
10
+ final class Memcached implements CacheInterface
12
11
{
13
- /**
14
- * @var Client
15
- */
16
- protected $ client ;
12
+ private $ client ;
17
13
18
- /**
19
- * @var string
20
- */
21
- protected $ prefix ;
14
+ private $ prefix ;
22
15
23
- /**
24
- * @param LoopInterface $loop
25
- * @param string $address
26
- * @param string $prefix
27
- */
28
- public function __construct (LoopInterface $ loop , $ address = 'localhost:11211 ' , $ prefix = 'react:cache: ' )
16
+ public function __construct (LoopInterface $ loop , string $ address = 'localhost:11211 ' , string $ prefix = 'react:cache: ' )
29
17
{
30
18
$ this ->client = ClientFactory::createClient ($ loop , $ address );
31
19
$ this ->prefix = $ prefix ;
You can’t perform that action at this time.
0 commit comments