{"action":"created","issue":{"url":"https://api.github.com/repos/php-cds/php-cds-discussion/issues/4","repository_url":"https://api.github.com/repos/php-cds/php-cds-discussion","labels_url":"https://api.github.com/repos/php-cds/php-cds-discussion/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/php-cds/php-cds-discussion/issues/4/comments","events_url":"https://api.github.com/repos/php-cds/php-cds-discussion/issues/4/events","html_url":"https://github.com/php-cds/php-cds-discussion/issues/4","id":154674764,"number":4,"title":"[RFC] Simpfilied cache","user":{"login":"marcj","id":450980,"avatar_url":"https://avatars.githubusercontent.com/u/450980?v=3","gravatar_id":"","url":"https://api.github.com/users/marcj","html_url":"https://github.com/marcj","followers_url":"https://api.github.com/users/marcj/followers","following_url":"https://api.github.com/users/marcj/following{/other_user}","gists_url":"https://api.github.com/users/marcj/gists{/gist_id}","starred_url":"https://api.github.com/users/marcj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcj/subscriptions","organizations_url":"https://api.github.com/users/marcj/orgs","repos_url":"https://api.github.com/users/marcj/repos","events_url":"https://api.github.com/users/marcj/events{/privacy}","received_events_url":"https://api.github.com/users/marcj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":82,"created_at":"2016-05-13T09:51:16Z","updated_at":"2016-05-15T10:05:51Z","closed_at":null,"body":"Initial RFC idea: https://github.com/php-cds/php-cds/issues/7\r\n\r\nAll discussions about a \"advanced\" version please here: [[RFC] Advanced cache](https://github.com/php-cds/php-cds-discussion/issues/6)"},"comment":{"url":"https://api.github.com/repos/php-cds/php-cds-discussion/issues/comments/219276573","html_url":"https://github.com/php-cds/php-cds-discussion/issues/4#issuecomment-219276573","issue_url":"https://api.github.com/repos/php-cds/php-cds-discussion/issues/4","id":219276573,"user":{"login":"odan","id":781074,"avatar_url":"https://avatars.githubusercontent.com/u/781074?v=3","gravatar_id":"","url":"https://api.github.com/users/odan","html_url":"https://github.com/odan","followers_url":"https://api.github.com/users/odan/followers","following_url":"https://api.github.com/users/odan/following{/other_user}","gists_url":"https://api.github.com/users/odan/gists{/gist_id}","starred_url":"https://api.github.com/users/odan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/odan/subscriptions","organizations_url":"https://api.github.com/users/odan/orgs","repos_url":"https://api.github.com/users/odan/repos","events_url":"https://api.github.com/users/odan/events{/privacy}","received_events_url":"https://api.github.com/users/odan/received_events","type":"User","site_admin":false},"created_at":"2016-05-15T10:05:51Z","updated_at":"2016-05-15T10:05:51Z","body":"If I cache a null value  (e.g. coming from the database) then this key must exists, but the value is null.\r\nFor example:\r\n_array_key_exists checks_ - Checks if the given **key** or index exists in the array\r\n_isset_ - Determine if a **variable** is set and is not NULL\r\n\r\nThe \"has($key)\" function should be something like the array_key_exists function and not like the isset.\r\n"}}