Skip to content

Commit b59ab3c

Browse files
committed
correct doc
1 parent 9aa7a6c commit b59ab3c

2 files changed

Lines changed: 16 additions & 4 deletions

File tree

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff 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

1824
Then You need this Package.

README_CN.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff 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

1824
Then You need this Package.

0 commit comments

Comments
 (0)