Sha256: d199e17a4d9bec452b97468ee8831058beda7afe8186bf486a8a9e1c59485684

Contents?: true

Size: 413 Bytes

Versions: 9

Compression:

Stored size: 413 Bytes

Contents

module Cell
  module Caching
    module Notifications
      def fetch_from_cache_for(key, options)
        ActiveSupport::Notifications.instrument('read_fragment.cells', :key => key) do
          cache_store.fetch(key, options) do
            ActiveSupport::Notifications.instrument('write_fragment.cells', :key => key) do
              yield
            end
          end
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
cells-4.0.0 lib/cell/caching/notification.rb
cells-4.0.0.rc1 lib/cell/caching/notification.rb
cells-4.0.0.beta6 lib/cell/caching/notification.rb
cells-4.0.0.beta5 lib/cell/caching/notification.rb
cells-4.0.0.beta4 lib/cell/caching/notification.rb
cells-4.0.0.beta3 lib/cell/caching/notification.rb
cells-4.0.0.beta2 lib/cell/caching/notification.rb
cells-4.0.0.beta1 lib/cell/caching/notification.rb
cells-jamie-4.0.0.alpha1 lib/cell/caching/notification.rb