{"action":"opened","issue":{"url":"https://api.github.com/repos/aminjam/Redis.AspNet.Identity/issues/4","repository_url":"https://api.github.com/repos/aminjam/Redis.AspNet.Identity","labels_url":"https://api.github.com/repos/aminjam/Redis.AspNet.Identity/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/aminjam/Redis.AspNet.Identity/issues/4/comments","events_url":"https://api.github.com/repos/aminjam/Redis.AspNet.Identity/issues/4/events","html_url":"https://github.com/aminjam/Redis.AspNet.Identity/issues/4","id":190778641,"number":4,"title":"This needs to use a quicker method than SCAN or KEYS","user":{"login":"KeithHenry","id":3418678,"avatar_url":"https://avatars.githubusercontent.com/u/3418678?v=3","gravatar_id":"","url":"https://api.github.com/users/KeithHenry","html_url":"https://github.com/KeithHenry","followers_url":"https://api.github.com/users/KeithHenry/followers","following_url":"https://api.github.com/users/KeithHenry/following{/other_user}","gists_url":"https://api.github.com/users/KeithHenry/gists{/gist_id}","starred_url":"https://api.github.com/users/KeithHenry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KeithHenry/subscriptions","organizations_url":"https://api.github.com/users/KeithHenry/orgs","repos_url":"https://api.github.com/users/KeithHenry/repos","events_url":"https://api.github.com/users/KeithHenry/events{/privacy}","received_events_url":"https://api.github.com/users/KeithHenry/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-21T17:04:53Z","updated_at":"2016-11-21T17:04:53Z","closed_at":null,"body":"This uses a key pattern and `ServiceStack.Redis.IRedisClient.SearchKeys` which uses `KEYS` and blocks the Redis service. It could use `SCAN`, but you'd still only be looking on the current server and (as it has to scan the entire store) it's very slow.\r\n\r\nNeither `KEYS` nor `SCAN` should be [used in production](http://redis.io/commands/KEYS), as so rule out use of this library entirely.\r\n\r\nIt's worth noting that, should you [port to using `StackExchange.Redis`](https://github.com/aminjam/Redis.AspNet.Identity/issues/2) you'll find that `KEYS` and `SCAN` are [only available on the server](https://github.com/StackExchange/StackExchange.Redis/blob/master/Docs/KeysScan.md).\r\n\r\nInstead it should use `SMEMBERS` to ensure that it remains quick and supports multiple Redis servers."}}
{"actor":{"display_login":"KeithHenry"}}