{"action":"created","issue":{"url":"https://api.github.com/repos/ahinko/phapi/issues/1","labels_url":"https://api.github.com/repos/ahinko/phapi/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/ahinko/phapi/issues/1/comments","events_url":"https://api.github.com/repos/ahinko/phapi/issues/1/events","html_url":"https://github.com/ahinko/phapi/issues/1","id":59945169,"number":1,"title":"apcu cache","user":{"login":"pavarnos","id":589595,"avatar_url":"https://avatars.githubusercontent.com/u/589595?v=3","gravatar_id":"","url":"https://api.github.com/users/pavarnos","html_url":"https://github.com/pavarnos","followers_url":"https://api.github.com/users/pavarnos/followers","following_url":"https://api.github.com/users/pavarnos/following{/other_user}","gists_url":"https://api.github.com/users/pavarnos/gists{/gist_id}","starred_url":"https://api.github.com/users/pavarnos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pavarnos/subscriptions","organizations_url":"https://api.github.com/users/pavarnos/orgs","repos_url":"https://api.github.com/users/pavarnos/repos","events_url":"https://api.github.com/users/pavarnos/events{/privacy}","received_events_url":"https://api.github.com/users/pavarnos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-03-05T12:29:11Z","updated_at":"2015-03-26T21:02:14Z","closed_at":null,"body":"Hi. Forget how I stumbled across this, but it looks awesome! I can't see why it has had so few downloads on Packagist... it does everything you need right out of the box without a ton of overhead. Great stuff!\r\n\r\nAre you accepting contributions? I'd write an apcu cache driver and middleware for thephpleague/oauth2-server if you are interested.\r\n\r\nDo you have an idea when v2 will be ready (and how different it will be to v1.2)? I'm looking to start writing my api in the next week or so, but would wait if you plan to release soon. What impact will v2 have on the middleware and caching interfaces?"},"comment":{"url":"https://api.github.com/repos/ahinko/phapi/issues/comments/86715533","html_url":"https://github.com/ahinko/phapi/issues/1#issuecomment-86715533","issue_url":"https://api.github.com/repos/ahinko/phapi/issues/1","id":86715533,"user":{"login":"ahinko","id":7915158,"avatar_url":"https://avatars.githubusercontent.com/u/7915158?v=3","gravatar_id":"","url":"https://api.github.com/users/ahinko","html_url":"https://github.com/ahinko","followers_url":"https://api.github.com/users/ahinko/followers","following_url":"https://api.github.com/users/ahinko/following{/other_user}","gists_url":"https://api.github.com/users/ahinko/gists{/gist_id}","starred_url":"https://api.github.com/users/ahinko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahinko/subscriptions","organizations_url":"https://api.github.com/users/ahinko/orgs","repos_url":"https://api.github.com/users/ahinko/repos","events_url":"https://api.github.com/users/ahinko/events{/privacy}","received_events_url":"https://api.github.com/users/ahinko/received_events","type":"User","site_admin":false},"created_at":"2015-03-26T21:02:14Z","updated_at":"2015-03-26T21:02:14Z","body":"@pavarnos I've finally started looking at the cache interface for version 2 and I've changed my mind in a way. My initial plan was to wait for PSR-6 to be finalized but I realize that it might be a while. \r\n\r\nAnyway, I have a question for you. What do you think about the current Cache interface Phapi has in version 1.2? Should something change? \r\n\r\nI myself think it's mostly easy to use and understand. The only method I think needs some explanation is the <code>connect()</code> method. I believe that the application should continue to work even if there is a problem connecting to the cache. So I added the <code>connect()</code> method since it makes connection errors easier to handle. The <code>connect()</code> method should return true or false. If the class returns false, Phapi will create a <code>new NullCache()</code> that doesn't really do anything exempt returning false when trying to receiving something from the cache. By doing that the application will continue to work."}}