method

exist?

rails latest stable - Class: ActiveSupport::Cache::Store
exist?(name, options = nil)
public

Returns true if the cache contains an entry for the given key.

Options are passed to the underlying cache implementation.