Sha256: 2c23a7054566e8042e6d3f90f7621c093710fd5031c4d15635caac0169332ce8

Contents?: true

Size: 332 Bytes

Versions: 4

Compression:

Stored size: 332 Bytes

Contents

module Padrino
  module Cache
    module Helpers
      module CacheStore
        def expire(*key)
          if key.size == 1 and key.first.is_a?(String)
            self.class.cache_store.delete(key)
          else
            self.class.cache_store.delete(self.class.url(*key))
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
padrino-cache-0.9.19 lib/padrino-cache/helpers/cache_store.rb
padrino-cache-0.9.18 lib/padrino-cache/helpers/cache_store.rb
padrino-cache-0.9.17 lib/padrino-cache/helpers/cache_store.rb
padrino-cache-0.9.16 lib/padrino-cache/helpers/cache_store.rb