Skip to content

Commit

Permalink
Merge pull request Kevinrob#109 from greg0ire/patch-1
Browse files Browse the repository at this point in the history
Proofread readme
  • Loading branch information
Kevinrob authored Jul 11, 2018
2 parents d069282 + a0f2ed1 commit 6cdaad0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ A HTTP Cache for [Guzzle](https://github.com/guzzle/guzzle) 6. It's a simple Mid
- Performance and transparency
- Assured compatibility with PSR-7

## Storage interfaces build-in
## Built-in storage interfaces
- [Doctrine cache](https://github.com/doctrine/cache)
- [Laravel cache](https://laravel.com/docs/5.2/cache)
- [Flysystem](https://github.com/thephpleague/flysystem)
Expand All @@ -22,7 +22,7 @@ A HTTP Cache for [Guzzle](https://github.com/guzzle/guzzle) 6. It's a simple Mid

`composer require kevinrob/guzzle-cache-middleware`

or add it the your `composer.json` and make a `composer update kevinrob/guzzle-cache-middleware`.
or add it the your `composer.json` and run `composer update kevinrob/guzzle-cache-middleware`.

# Why?
Performance. It's very common to do some HTTP calls to an API for rendering a page and it takes times to do it.
Expand Down Expand Up @@ -68,7 +68,7 @@ $stack->push(
);
```

You can use `ChainCache` for using multiple `CacheProvider`. With that provider, you have to sort the different cache from the faster to the slower. Like that, you can have a very fast cache.
You can use `ChainCache` for using multiple `CacheProvider` instances. With that provider, you have to sort the different caches from the faster to the slower. Like that, you can have a very fast cache.
```php
[...]
use Doctrine\Common\Cache\ChainCache;
Expand Down Expand Up @@ -190,7 +190,7 @@ $stack->push(
```

## Greedy caching
In some cases servers might send insufficient or no at all caching headers.
In some cases servers might send insufficient or no caching headers at all.
Using the greedy caching strategy allows defining an expiry TTL on your own while
disregarding any possibly present caching headers:
```php
Expand Down

0 comments on commit 6cdaad0

Please sign in to comment.