Sha256: 20c47da10967d5510739334634e23778fc1ab816f8901f4324150303df576c55

Contents?: true

Size: 336 Bytes

Versions: 2

Compression:

Stored size: 336 Bytes

Contents

module Catche
  module Expire
    module View

      class << self

        # Expires cache by deleting the associated keys
        #
        #   Catche::Expire::View.expire!('projects')
        def expire!(*keys)
          keys.each do |key|
            Catche.adapter.delete key
          end
        end

      end

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
catche-0.2.3 lib/catche/expire/view.rb
catche-0.2.2 lib/catche/expire/view.rb