Skip to content

Instantly share code, notes, and snippets.

@brycemcd
Created February 27, 2014 18:47
Show Gist options
  • Save brycemcd/9256475 to your computer and use it in GitHub Desktop.
Save brycemcd/9256475 to your computer and use it in GitHub Desktop.
Read values from Rack::Cache's meta Disk store
# For future Bryce to Google and find...
# in irb session:
f = File.read("meta/7e/13c49c3d286767984ee2d801df056cb879d2a2"); nil # nil is here so it doesn't barf the contents of the file into the console
headers = Marhsal.load(f)
headers = headers[0]
headers.first # => hash of headers
headers.last # => hash of headers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment