Skip to content

Instantly share code, notes, and snippets.

@adamwiggins
Created April 28, 2009 22:30
Show Gist options
  • Save adamwiggins/103442 to your computer and use it in GitHub Desktop.
Save adamwiggins/103442 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'memcache'
class MemCache
def self.cache
@@cache ||= MemCache.new('localhost:11211')
end
end
MemCache.cache['abc'] = 123
puts MemCache.cache['abc']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment