Skip to content

Instantly share code, notes, and snippets.

@mje113
Created March 21, 2014 18:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mje113/9692044 to your computer and use it in GitHub Desktop.
Save mje113/9692044 to your computer and use it in GitHub Desktop.
[1] pry(main)> require 'torquebox-cache'
=> false
[2] pry(main)> cache = TorqueBox::Infinispan::Cache.new( :name => 'treasure' )
=> #<TorqueBox::Infinispan::Cache:0x622b87e8
@cache=#<Object:0x17e7c2b2>,
@codec=TorqueBox::Codecs::MarshalSmart,
@options={:name=>"treasure"}>
[3] pry(main)> cache.put('abcd', 'asdfafdasdf')
=> nil
[4] pry(main)> cache.get('abcd')
=> nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment