{"action":"closed","issue":{"url":"https://api.github.com/repos/graze/formatter/issues/9","labels_url":"https://api.github.com/repos/graze/formatter/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/graze/formatter/issues/9/comments","events_url":"https://api.github.com/repos/graze/formatter/issues/9/events","html_url":"https://github.com/graze/formatter/issues/9","id":122007271,"number":9,"title":"Caching","user":{"login":"sjparkinson","id":51677,"avatar_url":"https://avatars.githubusercontent.com/u/51677?v=3","gravatar_id":"","url":"https://api.github.com/users/sjparkinson","html_url":"https://github.com/sjparkinson","followers_url":"https://api.github.com/users/sjparkinson/followers","following_url":"https://api.github.com/users/sjparkinson/following{/other_user}","gists_url":"https://api.github.com/users/sjparkinson/gists{/gist_id}","starred_url":"https://api.github.com/users/sjparkinson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjparkinson/subscriptions","organizations_url":"https://api.github.com/users/sjparkinson/orgs","repos_url":"https://api.github.com/users/sjparkinson/repos","events_url":"https://api.github.com/users/sjparkinson/events{/privacy}","received_events_url":"https://api.github.com/users/sjparkinson/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/graze/formatter/labels/Help%20Wanted","name":"Help Wanted","color":"FEF2C0"}],"state":"closed","locked":false,"assignee":{"login":"sjparkinson","id":51677,"avatar_url":"https://avatars.githubusercontent.com/u/51677?v=3","gravatar_id":"","url":"https://api.github.com/users/sjparkinson","html_url":"https://github.com/sjparkinson","followers_url":"https://api.github.com/users/sjparkinson/followers","following_url":"https://api.github.com/users/sjparkinson/following{/other_user}","gists_url":"https://api.github.com/users/sjparkinson/gists{/gist_id}","starred_url":"https://api.github.com/users/sjparkinson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjparkinson/subscriptions","organizations_url":"https://api.github.com/users/sjparkinson/orgs","repos_url":"https://api.github.com/users/sjparkinson/repos","events_url":"https://api.github.com/users/sjparkinson/events{/privacy}","received_events_url":"https://api.github.com/users/sjparkinson/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-12-14T09:45:02Z","updated_at":"2015-12-18T16:26:18Z","closed_at":"2015-12-18T16:26:18Z","body":"A big benefit of the current implementation in our web application is the easy ability to cache the result.\r\n\r\nFormatters that want to support caching have a `formatCollection` method that accepts an instance of `CacheableCollectionInterface` so that a unique key can be generated for a collection of objects.\r\n\r\nThe current `formatMany` method doesn't support this as it's type hinting on `array`.\r\n\r\nHow can we enable easy caching of results in this library?\r\n\r\n(Thanks @silawrenc for the reminder!)"}}