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 55use React \Cache \CacheInterface ;
66use React \EventLoop \LoopInterface ;
77use React \Promise \PromiseInterface ;
8- use seregazhuk \React \Memcached \Client ;
98use seregazhuk \React \Memcached \Factory as ClientFactory ;
109
11- class Memcached implements CacheInterface
10+ final class Memcached implements CacheInterface
1211{
13- /**
14- * @var Client
15- */
16- protected $ client ;
12+ private $ client ;
1713
18- /**
19- * @var string
20- */
21- protected $ prefix ;
14+ private $ prefix ;
2215
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: ' )
2917 {
3018 $ this ->client = ClientFactory::createClient ($ loop , $ address );
3119 $ this ->prefix = $ prefix ;
You can’t perform that action at this time.
0 commit comments