instance method exist

Ruby on Rails 2.3.18

Since v2.3.18 Last seen in v2.3.18

Signature

exist(key, options = nil)

No documentation comment.

Parameters

key req
options opt = nil
Source
# File activesupport/lib/active_support/cache/strategy/local_cache.rb, line 59
        def exist(key, options = nil)
          value = local_cache.read(key) if local_cache
          if value == NULL
            false
          elsif value
            true
          else
            super
          end
        end

Defined in activesupport/lib/active_support/cache/strategy/local_cache.rb line 59 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveSupport::Cache::Strategy::LocalCache

Type at least 2 characters to search.

↑↓ navigate · open · esc close