Sha256: 9ec7625627ecdfe8e74ad9c97dd8452b4ca1ebdcdc93b6e6fd132c6dc59b5c64

Contents?: true

Size: 407 Bytes

Versions: 20

Compression:

Stored size: 407 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

20 entries across 20 versions & 2 rubygems

Version Path
cells-rails-0.1.6 lib/cell/caching/notification.rb
cells-rails-0.1.5 lib/cell/caching/notification.rb
cells-rails-0.1.4 lib/cell/caching/notification.rb
cells-rails-0.1.3 lib/cell/caching/notification.rb
cells-rails-0.1.2 lib/cell/caching/notification.rb
cells-rails-0.1.1 lib/cell/caching/notification.rb
cells-rails-0.1.0 lib/cell/caching/notification.rb
cells-rails-0.0.9 lib/cell/caching/notification.rb
cells-rails-0.0.8 lib/cell/caching/notification.rb
cells-rails-0.0.7 lib/cell/caching/notification.rb
cells-rails-0.0.6 lib/cell/caching/notification.rb
cells-rails-0.0.5 lib/cell/caching/notification.rb
cells-rails-0.0.4 lib/cell/caching/notification.rb
cells-rails-0.0.3 lib/cell/caching/notification.rb
cells-rails-0.0.2 lib/cell/caching/notification.rb
cells-4.0.5 lib/cell/caching/notification.rb
cells-4.0.4 lib/cell/caching/notification.rb
cells-4.0.3 lib/cell/caching/notification.rb
cells-4.0.2 lib/cell/caching/notification.rb
cells-4.0.1 lib/cell/caching/notification.rb