Christoffer
Christoffer

Reputation: 2411

Rails.cache.stats gives only three values (not extensive stats)

I am using Rails, Heroku and the Dalli gem.

If I type Rails.cache.stats in the Heroku console I get {"mc2.ec2.memcachier.com:11211"=>{"cur_items"=>"408", "bytes"=>"8920696"}} whereas everywhere I Google it and here on StackOverflow it seems like I should get extensive stats like this one.

Why can't I see the extended stats? It is very likely the same problems as this one but I am not sure.

Upvotes: 0

Views: 1046

Answers (1)

phoet
phoet

Reputation: 18845

the thing is, that you are using the memcachier plugin as a backend for the dalli-store.

the output of the stats command is not the regular stats that the memcached would give, but that of the plugin-provider.

have a look at the heroku docs (search for stats) for example data of what this should return: https://devcenter.heroku.com/articles/memcachier

Upvotes: 2

Related Questions