Class: Ramaze::SequelCache::Table

Inherits:
Object
  • Object
show all
Defined in:
lib/ramaze/contrib/sequel_cache.rb

Instance Method Summary collapse

Instance Method Details

#valueObject

use sequel’s built-in serialize function if you like execptions: the serialized data blows up the sql serialize :value, :format => :marshal



25
26
27
28
# File 'lib/ramaze/contrib/sequel_cache.rb', line 25

transform :value => [
  lambda{|value| Marshal.load(Base64.decode64(value))},
  lambda{|value| Base64.encode64(Marshal.dump(value))},
]