Module: Memcached::MarshalCodec

Defined in:
lib/memcached/marshal_codec.rb

Class Method Summary collapse

Class Method Details

.decode(key, value, flags) ⇒ Object



6
7
8
# File 'lib/memcached/marshal_codec.rb', line 6

def self.decode(key, value, flags)
  Marshal.load(value)
end

.encode(key, value, flags) ⇒ Object



3
4
5
# File 'lib/memcached/marshal_codec.rb', line 3

def self.encode(key, value, flags)
  [Marshal.dump(value), flags]
end