Sha256: beed4eb7248eb290f9922f9fb234451af981f4140270239330be70fed0cc9d44

Contents?: true

Size: 325 Bytes

Versions: 3

Compression:

Stored size: 325 Bytes

Contents

module RailsContrib
  module ActionController
    module Caching
      module Sweeper

        protected

        def increment_cache_namespace(namespace)
          key = "namespaces/#{namespace}"
          value = Rails.cache.read(key)
          Rails.cache.write(key, value.to_i+1)
        end

      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rails_contrib-0.0.4 lib/rails_contrib/action_controller/caching/sweeper.rb
rails_contrib-0.0.3 lib/rails_contrib/action_controller/caching/sweeper.rb
rails_contrib-0.0.2 lib/rails_contrib/action_controller/caching/sweeper.rb