File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,9 +10,15 @@ There is nothing like [NullLogger](https://github.com/php-fig/log/blob/master/Ps
1010## I (Or if you) don't want to write these code every where
1111
1212``` php
13- if ($this->logger){
14- $this->logger->error($message,$contex);
13+ //...
14+ if ($this->cache){
15+ $this->cache->set($key,$value,$ttl);
1516}
17+ //...
18+ if ($this->cache){
19+ $this->cache->get($key)
20+ }
21+ //...
1622```
1723
1824Then You need this Package.
Original file line number Diff line number Diff line change @@ -10,9 +10,15 @@ There is nothing like [NullLogger](https://github.com/php-fig/log/blob/master/Ps
1010## I (Or if you) don't want to write these code every where
1111
1212``` php
13- if ($this->logger){
14- $this->logger->error($message,$contex);
13+ //...
14+ if ($this->cache){
15+ $this->cache->set($key,$value,$ttl);
1516}
17+ //...
18+ if ($this->cache){
19+ $this->cache->get($key)
20+ }
21+ //...
1622```
1723
1824Then You need this Package.
You can’t perform that action at this time.
0 commit comments