class RubyBeans::Cache
Public Class Methods
get(name)
click to toggle source
# File lib/ruby_beans/cache.rb, line 6 def get(name) @@_hash[name] end
get_or_put(name, obj)
click to toggle source
# File lib/ruby_beans/cache.rb, line 14 def get_or_put(name, obj) unless get(name) put(name, obj) end get(name) end
hash()
click to toggle source
# File lib/ruby_beans/cache.rb, line 21 def hash @@_hash end
put(name, obj)
click to toggle source
# File lib/ruby_beans/cache.rb, line 10 def put(name, obj) @@_hash[name] = obj end