Sha256: 04b6030e96c02242997f1030773b24f351274e3ce8f40f3004ef055302741b30
Contents?: true
Size: 634 Bytes
Versions: 3
Compression:
Stored size: 634 Bytes
Contents
module Scales module Worker module Cache module Destroy class << self def destroy(*paths) paths.each do |path| publish_destroy(path) Storage::Sync.del_content(path) end end private def publish_destroy(path) data = { :path => path, :type => "destroy_#{Cache.resource_or_partial?(path)}" } Storage::Sync.connection.publish "scales_monitor_events", data.to_json end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
scales-worker-0.0.4 | lib/scales-worker/cache/destroy.rb |
scales-worker-0.0.1.beta.2 | lib/scales-worker/cache/destroy.rb |
scales-worker-0.0.1.beta.1 | lib/scales-worker/cache/destroy.rb |