Module: Sequel::Plugins::StaticCacheCache::ClassMethods
- Defined in:
- lib/sequel/plugins/static_cache_cache.rb
Instance Method Summary collapse
-
#dump_static_cache_cache ⇒ Object
Dump the in-memory cached rows to the cache file.
Instance Method Details
#dump_static_cache_cache ⇒ Object
Dump the in-memory cached rows to the cache file.
28 29 30 31 32 33 34 35 |
# File 'lib/sequel/plugins/static_cache_cache.rb', line 28 def dump_static_cache_cache static_cache_cache = {} @static_cache_cache.sort.each do |k, v| static_cache_cache[k] = v end File.open(@static_cache_cache_file, 'wb'){|f| f.write(Marshal.dump(static_cache_cache))} nil end |