class Sequel::Plugins::Cacheable::MessagePackPacker

Public Instance Methods

pack(obj) click to toggle source
# File lib/sequel-cacheable/packer.rb, line 25
def pack(obj)
  obj.to_msgpack
end
unpack(string) click to toggle source
# File lib/sequel-cacheable/packer.rb, line 29
def unpack(string)
  MessagePack.unpack(string)
end