Sha256: f58a1721d0e2e4c819c4bb005d8ace2b8e46969041747d02810653fb2d288cb7
Contents?: true
Size: 347 Bytes
Versions: 18
Compression:
Stored size: 347 Bytes
Contents
module Seabright module RedisObjectCleaner def self.clean! RedisObject.store.keys("*:collections").each do |key| if obj = RedisObject.find_by_key(key.gsub(/:collections$/,'')) obj.collections.each do |nm,col| puts "Cleaning: #{nm} #{col.class} #{col.inspect}" if DEBUG col.cleanup! end end end end end end
Version data entries
18 entries across 18 versions & 1 rubygems