{"action":"created","issue":{"url":"https://api.github.com/repos/sorentwo/readthis/issues/48","repository_url":"https://api.github.com/repos/sorentwo/readthis","labels_url":"https://api.github.com/repos/sorentwo/readthis/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/sorentwo/readthis/issues/48/comments","events_url":"https://api.github.com/repos/sorentwo/readthis/issues/48/events","html_url":"https://github.com/sorentwo/readthis/issues/48","id":166058981,"number":48,"title":"A word about delete_matched","user":{"login":"dreyks","id":1481264,"avatar_url":"https://avatars.githubusercontent.com/u/1481264?v=3","gravatar_id":"","url":"https://api.github.com/users/dreyks","html_url":"https://github.com/dreyks","followers_url":"https://api.github.com/users/dreyks/followers","following_url":"https://api.github.com/users/dreyks/following{/other_user}","gists_url":"https://api.github.com/users/dreyks/gists{/gist_id}","starred_url":"https://api.github.com/users/dreyks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dreyks/subscriptions","organizations_url":"https://api.github.com/users/dreyks/orgs","repos_url":"https://api.github.com/users/dreyks/repos","events_url":"https://api.github.com/users/dreyks/events{/privacy}","received_events_url":"https://api.github.com/users/dreyks/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-18T09:58:48Z","updated_at":"2016-07-18T19:07:00Z","closed_at":null,"body":"As stated in the Readme the `delete_matched` is an O(n) operation. However this is what sometimes really is needed, regardless of the performance hit.\r\n`redis-activesupport` gem provides this api with a [warning](https://github.com/redis-store/redis-activesupport/blob/668a0fc6192a3c7a6dad7e2fd3a8740ccfd2dacd/lib/active_support/cache/redis_store.rb#L66) in the documentation. After all this is [providing sharp knives](https://m.signalvnoise.com/provide-sharp-knives-cc0a22bf7934#.6057518yo), isn't it?\r\n\r\nWould you mind adding a `delete_matched` method anyway?"},"comment":{"url":"https://api.github.com/repos/sorentwo/readthis/issues/comments/233426893","html_url":"https://github.com/sorentwo/readthis/issues/48#issuecomment-233426893","issue_url":"https://api.github.com/repos/sorentwo/readthis/issues/48","id":233426893,"user":{"login":"sorentwo","id":270831,"avatar_url":"https://avatars.githubusercontent.com/u/270831?v=3","gravatar_id":"","url":"https://api.github.com/users/sorentwo","html_url":"https://github.com/sorentwo","followers_url":"https://api.github.com/users/sorentwo/followers","following_url":"https://api.github.com/users/sorentwo/following{/other_user}","gists_url":"https://api.github.com/users/sorentwo/gists{/gist_id}","starred_url":"https://api.github.com/users/sorentwo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sorentwo/subscriptions","organizations_url":"https://api.github.com/users/sorentwo/orgs","repos_url":"https://api.github.com/users/sorentwo/repos","events_url":"https://api.github.com/users/sorentwo/events{/privacy}","received_events_url":"https://api.github.com/users/sorentwo/received_events","type":"User","site_admin":false},"created_at":"2016-07-18T19:06:59Z","updated_at":"2016-07-18T19:06:59Z","body":"@dreyks Thanks for prompting me to look at this again. As it happens I have a need for `delete_matched` currently as well, but on a database that is large enough where using `KEYS` wasn't an option.\r\n\r\nPlease try out `delete_matched` on the master branch and let me know how it works for you. You can find [documentation on rubydoc.info](http://www.rubydoc.info/github/sorentwo/readthis/master/Readthis/Cache#delete_matched-instance_method)."}}
{"actor":{"display_login":"sorentwo"}}