Skip to content

memcachier/rails_sandbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MemCachier Rails Sandbox

This is a Ruby on Rails app meant to be used in a sandbox environment for experimenting with Memcache on Heroku.

Click here to automatically deploy a copy of this app to your Heroku account.

Once the app is provisioned, establish a Memcache console from the command line. Your Heroku app name is the subdomain of your deployed app. So if your app was deployed to "http://serene-mesa-2821.herokuapp.com/" then its app name is "serene-mesa-2821":

~~~~ .ruby
$ heroku run console -a app-name
irb> cache = Dalli::Client.new
irb> cache.set("foo", "bar")
=> true
irb> cache.get("foo")
=> "bar"
~~~~

Refer to the Getting the Most Out of Memcache article for advanced memcache usage.

Deploy to Heroku

You can deploy this app yourself to Heroku to play with.

Deploy

Get involved!

We are happy to receive bug reports, fixes, documentation enhancements, and other improvements.

Please report bugs via the github issue tracker.

Master git repository:

  • git clone git://github.com/memcachier/rails_sandbox.git

Licensing

This library is BSD-licensed.