Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7579271
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T17:38:10+00:00 2026-05-30T17:38:10+00:00

I am trying to wrap my brain around Rack::Cache, Rails 3.2, Memcache, and Heroku.

  • 0

I am trying to wrap my brain around Rack::Cache, Rails 3.2, Memcache, and Heroku. I think I’ve got it all working together, as outlined here: http://myownpirateradio.com/2012/01/01/getting-heroku-cedar-and-rails-3-1-asset-pipeline-to-play-nicely-together/

All that said, I am unsure if Memcached is actually doing what it should. Is there any way to get stats on Memcached or to see if a request was cached by Memcached? I put the current time on a page, and can see that it is getting cached (headers look good too), but how do I know it is all working with Memcached, as opposed to the file store?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T17:38:11+00:00Added an answer on May 30, 2026 at 5:38 pm

    You can get stats on memcached by doing:

    $ heroku run console
    Running console attached to terminal... up, run.1
    Loading production environment (Rails 3.1.3)
    irb(main):001:0> Rails.cache.stats
    Dalli/SASL authenticating as app590983%40heroku.com
    Dalli/SASL: Authenticated
    => {"mc5.ec2.northscale.net:11211"=>{"evictions"=>"0", "curr_items"=>"627",
        "total_items"=>"1257", "bytes"=>"2294318", "reclaimed"=>"0", 
        "engine_maxbytes"=>"5242880", "bucket_conns"=>"2", "pid"=>"319", 
        "uptime"=>"6710022", "time"=>"1330731177", "version"=>"1.4.4_207_g19c6b9e", 
        "libevent"=>"1.4.11-stable", "pointer_size"=>"64", 
        "rusage_user"=>"34354.590000", "rusage_system"=>"31381.520000", 
        "daemon_connections"=>"10", "curr_connections"=>"1211", 
        "total_connections"=>"14127919", "connection_structures"=>"1764", 
        "cmd_get"=>"9476", "cmd_set"=>"1257", "cmd_flush"=>"0", "auth_cmds"=>"24", 
        "auth_errors"=>"0", "get_hits"=>"8093", "get_misses"=>"1383", 
        "delete_misses"=>"0", "delete_hits"=>"0", "incr_misses"=>"0", 
        "incr_hits"=>"0", "decr_misses"=>"0", "decr_hits"=>"0", "cas_misses"=>"0", 
        "cas_hits"=>"0", "cas_badval"=>"0", "bytes_read"=>"21983909", 
        "bytes_written"=>"85267718", "limit_maxbytes"=>"67108864", 
        "rejected_conns"=>"0", "threads"=>"4", "conn_yields"=>"0"}}
    

    PS: I think you might need to be using the Dalli gem for this to work, but that is the recommended client anyway.

    You can also run Rails.cache.class to see which backend is Rails using.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Just trying to wrap my brain around open source cloud. 1) Is OpenStack running
I am trying to wrap a span around all numbers in a div so
I am trying to wrap my brain around using LINQ as a means of
I'm trying to wrap my brain around JMS and have been reading up on
I'm teaching myself XSLT and am still trying to wrap my brain around the
Trying to wrap my brain around animations here. Here is my basic situation: _________
I'm trying to wrap my brain around a query and hoping you can help.
I am still trying to wrap my brain around this whole xml serialization thing,
So, newbie NHibernate user; trying to wrap my brain around it. I'm contemplating how
I'm trying to wrap my brain around Haskell's existential types, and my first example

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.