{"action":"closed","issue":{"url":"https://api.github.com/repos/Kevinrob/guzzle-cache-middleware/issues/111","repository_url":"https://api.github.com/repos/Kevinrob/guzzle-cache-middleware","labels_url":"https://api.github.com/repos/Kevinrob/guzzle-cache-middleware/issues/111/labels{/name}","comments_url":"https://api.github.com/repos/Kevinrob/guzzle-cache-middleware/issues/111/comments","events_url":"https://api.github.com/repos/Kevinrob/guzzle-cache-middleware/issues/111/events","html_url":"https://github.com/Kevinrob/guzzle-cache-middleware/issues/111","id":347189012,"node_id":"MDU6SXNzdWUzNDcxODkwMTI=","number":111,"title":"Permanent cache","user":{"login":"kubk","id":22447849,"node_id":"MDQ6VXNlcjIyNDQ3ODQ5","avatar_url":"https://avatars1.githubusercontent.com/u/22447849?v=4","gravatar_id":"","url":"https://api.github.com/users/kubk","html_url":"https://github.com/kubk","followers_url":"https://api.github.com/users/kubk/followers","following_url":"https://api.github.com/users/kubk/following{/other_user}","gists_url":"https://api.github.com/users/kubk/gists{/gist_id}","starred_url":"https://api.github.com/users/kubk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubk/subscriptions","organizations_url":"https://api.github.com/users/kubk/orgs","repos_url":"https://api.github.com/users/kubk/repos","events_url":"https://api.github.com/users/kubk/events{/privacy}","received_events_url":"https://api.github.com/users/kubk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-08-02T21:57:16Z","updated_at":"2018-08-09T21:43:59Z","closed_at":"2018-08-09T21:43:59Z","author_association":"NONE","body":"Permanent cache is useful while testing Guzzle clients. Guzzle already provides [MockHandler](http://docs.guzzlephp.org/en/stable/testing.html) for testing API clients but for big clients it is tedious to generate manually all of the response fixtures.\r\nA middleware for permanent cache will solve this issue. Basically permanent cache is `GreedyCacheStrategy` without the `ttl` option.\r\nCan make a PR.\r\n\r\nFor example, [Geocoder PHP library](https://github.com/geocoder-php/provider-integration-tests) uses similar approach with cached responses:\r\nhttps://github.com/geocoder-php/provider-integration-tests/blob/master/src/CachedResponseClient.php#L78"}}
{"actor":{"display_login":"kubk"}}