{"action":"created","issue":{"url":"https://api.github.com/repos/phemellc/yii2-settings/issues/46","repository_url":"https://api.github.com/repos/phemellc/yii2-settings","labels_url":"https://api.github.com/repos/phemellc/yii2-settings/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/phemellc/yii2-settings/issues/46/comments","events_url":"https://api.github.com/repos/phemellc/yii2-settings/issues/46/events","html_url":"https://github.com/phemellc/yii2-settings/pull/46","id":148467960,"number":46,"title":"implemented has method","user":{"login":"schmunk42","id":649031,"avatar_url":"https://avatars.githubusercontent.com/u/649031?v=3","gravatar_id":"","url":"https://api.github.com/users/schmunk42","html_url":"https://github.com/schmunk42","followers_url":"https://api.github.com/users/schmunk42/followers","following_url":"https://api.github.com/users/schmunk42/following{/other_user}","gists_url":"https://api.github.com/users/schmunk42/gists{/gist_id}","starred_url":"https://api.github.com/users/schmunk42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schmunk42/subscriptions","organizations_url":"https://api.github.com/users/schmunk42/orgs","repos_url":"https://api.github.com/users/schmunk42/repos","events_url":"https://api.github.com/users/schmunk42/events{/privacy}","received_events_url":"https://api.github.com/users/schmunk42/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-14T20:05:33Z","updated_at":"2016-04-15T17:09:23Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/phemellc/yii2-settings/pulls/46","html_url":"https://github.com/phemellc/yii2-settings/pull/46","diff_url":"https://github.com/phemellc/yii2-settings/pull/46.diff","patch_url":"https://github.com/phemellc/yii2-settings/pull/46.patch"},"body":"This is related to https://github.com/phemellc/yii2-settings/issues/37#issuecomment-182534510\r\n\r\n**Note!** This is implemented in an uncached version, which is not ideal.\r\nBut I ran into some complications, because I'd need to cache \"all\" values instead \"active\" (current default).\r\nThis also applies to `_data` which would also have to distinguish between \"all\" and \"active\".\r\n\r\nLet me know your thoughts.\r\n\r\nBtw: Is it by design that a `key` can exist twice? "},"comment":{"url":"https://api.github.com/repos/phemellc/yii2-settings/issues/comments/210549777","html_url":"https://github.com/phemellc/yii2-settings/pull/46#issuecomment-210549777","issue_url":"https://api.github.com/repos/phemellc/yii2-settings/issues/46","id":210549777,"user":{"login":"schmunk42","id":649031,"avatar_url":"https://avatars.githubusercontent.com/u/649031?v=3","gravatar_id":"","url":"https://api.github.com/users/schmunk42","html_url":"https://github.com/schmunk42","followers_url":"https://api.github.com/users/schmunk42/followers","following_url":"https://api.github.com/users/schmunk42/following{/other_user}","gists_url":"https://api.github.com/users/schmunk42/gists{/gist_id}","starred_url":"https://api.github.com/users/schmunk42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schmunk42/subscriptions","organizations_url":"https://api.github.com/users/schmunk42/orgs","repos_url":"https://api.github.com/users/schmunk42/repos","events_url":"https://api.github.com/users/schmunk42/events{/privacy}","received_events_url":"https://api.github.com/users/schmunk42/received_events","type":"User","site_admin":false},"created_at":"2016-04-15T17:09:23Z","updated_at":"2016-04-15T17:09:23Z","body":"> It is by design. A combination of section and key should form a unique value.\r\n\r\nNice 👍 I misunderstood it first, I think.\r\n\r\n> Probably also make searching for disabled settings an optional param?\r\n\r\nThat's absolutely necessary.\r\n\r\n> How about if we implement has as a single query that fetches 1 value and just forgo caching in that case?\r\n\r\nI would cache `has()` also, may also be called very often.\r\n\r\nHow about caching the whole settings and use `has()` in `get()`?\r\n"}}