method

delete

rails latest stable - Class: ActiveSupport::Cache::MemCacheStore

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here.

delete(key, options = nil)
public

No documentation available.

# File activesupport/lib/active_support/cache/mem_cache_store.rb, line 89
      def delete(key, options = nil) # :nodoc:
        super
        response = @data.delete(key, expires_in(options))
        response == Response::DELETED
      rescue MemCache::MemCacheError => e
        logger.error("MemCacheError (#{e}): #{e.message}")
        false
      end