Skip to content

Instantly share code, notes, and snippets.

@okochang
Created February 22, 2013 13:42
Show Gist options
  • Save okochang/5013457 to your computer and use it in GitHub Desktop.
Save okochang/5013457 to your computer and use it in GitHub Desktop.
$ gem install dalli
$ irb
> require 'dalli'
=> true
> dc = Dalli::Client.new('yanase-cache-cluster.k9yqoo.cfg.apne1.cache.amazonaws.com:11211')
=> #<Dalli::Client:0x000000011c4890 @servers="yanase-cache-cluster.k9yqoo.cfg.apne1.cache.amazonaws.com:11211", @options={}, @ring=nil>
> dc.set("hoge", "foo")
=> true
> dc.get("hoge")
=> "foo"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment