{"action":"created","issue":{"url":"https://api.github.com/repos/petergoldstein/dalli/issues/557","repository_url":"https://api.github.com/repos/petergoldstein/dalli","labels_url":"https://api.github.com/repos/petergoldstein/dalli/issues/557/labels{/name}","comments_url":"https://api.github.com/repos/petergoldstein/dalli/issues/557/comments","events_url":"https://api.github.com/repos/petergoldstein/dalli/issues/557/events","html_url":"https://github.com/petergoldstein/dalli/issues/557","id":106082856,"node_id":"MDU6SXNzdWUxMDYwODI4NTY=","number":557,"title":":mem_cache_store vs. :dalli_store in Rails?","user":{"login":"wjordan","id":56541,"node_id":"MDQ6VXNlcjU2NTQx","avatar_url":"https://avatars3.githubusercontent.com/u/56541?v=4","gravatar_id":"","url":"https://api.github.com/users/wjordan","html_url":"https://github.com/wjordan","followers_url":"https://api.github.com/users/wjordan/followers","following_url":"https://api.github.com/users/wjordan/following{/other_user}","gists_url":"https://api.github.com/users/wjordan/gists{/gist_id}","starred_url":"https://api.github.com/users/wjordan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wjordan/subscriptions","organizations_url":"https://api.github.com/users/wjordan/orgs","repos_url":"https://api.github.com/users/wjordan/repos","events_url":"https://api.github.com/users/wjordan/events{/privacy}","received_events_url":"https://api.github.com/users/wjordan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/petergoldstein/dalli/milestones/1","html_url":"https://github.com/petergoldstein/dalli/milestone/1","labels_url":"https://api.github.com/repos/petergoldstein/dalli/milestones/1/labels","id":1025995,"node_id":"MDk6TWlsZXN0b25lMTAyNTk5NQ==","number":1,"title":"3.0","description":null,"creator":{"login":"mperham","id":2911,"node_id":"MDQ6VXNlcjI5MTE=","avatar_url":"https://avatars2.githubusercontent.com/u/2911?v=4","gravatar_id":"","url":"https://api.github.com/users/mperham","html_url":"https://github.com/mperham","followers_url":"https://api.github.com/users/mperham/followers","following_url":"https://api.github.com/users/mperham/following{/other_user}","gists_url":"https://api.github.com/users/mperham/gists{/gist_id}","starred_url":"https://api.github.com/users/mperham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mperham/subscriptions","organizations_url":"https://api.github.com/users/mperham/orgs","repos_url":"https://api.github.com/users/mperham/repos","events_url":"https://api.github.com/users/mperham/events{/privacy}","received_events_url":"https://api.github.com/users/mperham/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":1,"state":"open","created_at":"2015-03-17T18:13:40Z","updated_at":"2017-03-09T04:31:51Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2015-09-11T19:58:22Z","updated_at":"2019-02-20T16:25:41Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"It seems that Rails ActiveSupport provides a Memcached adapter [`:mem_cache_store`](https://github.com/rails/rails/blob/master/activesupport/lib/active_support/cache/mem_cache_store.rb), that requires the `dalli` gem and provides a cache store implementation that wraps `Dalli::Client`. However, dalli also provides its own Memcached adapter, [`:dalli_store`](https://github.com/mperham/dalli/blob/master/lib/active_support/cache/dalli_store.rb) that seems to do the exact same thing. :confused: \n\nCould someone compare these two competing Rails cache store implementations and provide some guidelines as to when it's appropriate to use one or the other? ('Always use `:dalli_store` because it's better-maintained and tested' is an acceptable response here if that's accurate, but I don't know if that's actually the case.)\n\nI also think it would be worth adding a mention of this in `README.md` to avoid confusion for future users who may not know the difference between the two (or even that two different implementations even exist).\n"},"comment":{"url":"https://api.github.com/repos/petergoldstein/dalli/issues/comments/465650581","html_url":"https://github.com/petergoldstein/dalli/issues/557#issuecomment-465650581","issue_url":"https://api.github.com/repos/petergoldstein/dalli/issues/557","id":465650581,"node_id":"MDEyOklzc3VlQ29tbWVudDQ2NTY1MDU4MQ==","user":{"login":"dennym","id":1562328,"node_id":"MDQ6VXNlcjE1NjIzMjg=","avatar_url":"https://avatars3.githubusercontent.com/u/1562328?v=4","gravatar_id":"","url":"https://api.github.com/users/dennym","html_url":"https://github.com/dennym","followers_url":"https://api.github.com/users/dennym/followers","following_url":"https://api.github.com/users/dennym/following{/other_user}","gists_url":"https://api.github.com/users/dennym/gists{/gist_id}","starred_url":"https://api.github.com/users/dennym/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dennym/subscriptions","organizations_url":"https://api.github.com/users/dennym/orgs","repos_url":"https://api.github.com/users/dennym/repos","events_url":"https://api.github.com/users/dennym/events{/privacy}","received_events_url":"https://api.github.com/users/dennym/received_events","type":"User","site_admin":false},"created_at":"2019-02-20T16:25:41Z","updated_at":"2019-02-20T16:25:41Z","author_association":"NONE","body":"To be honest I use ActiveSupport::Cache::DalliStore because there is a documentation with all the options. MemCacheStore has one paragraph in Rails Guide. I would have to dig through rails repository to figure out where and how to the configuration gets to dalli."}}
{"actor":{"display_login":"dennym"}}