module Moneta::Tyrant::Implementation
Public Class Methods
new(options = {})
click to toggle source
Calls superclass method
# File lib/moneta/tyrant.rb, line 13 def initialize(options = {}) host = options[:host] port = options[:port] super(host, port) end
Public Instance Methods
[](key)
click to toggle source
Calls superclass method
# File lib/moneta/tyrant.rb, line 23 def [](key) if val = super Marshal.load(val.unpack("m")[0]) end end
[]=(key, value)
click to toggle source
Calls superclass method
# File lib/moneta/tyrant.rb, line 29 def []=(key, value) super(key, [Marshal.dump(value)].pack("m")) end
key?(key)
click to toggle source
# File lib/moneta/tyrant.rb, line 19 def key?(key) !!self[key] end