instance method
read
Ruby on Rails 2.3.18
Since v2.2.3Signature
read(key, options = nil)
Fetches data from the cache, using the given key. If there is data in the cache with the given key, then that data is returned. Otherwise, nil is returned.
You may also specify additional options via the options argument. The specific cache store implementation will decide what to do with options.
Parameters
-
keyreq -
optionsopt = nil
Source
# File activesupport/lib/active_support/cache.rb, line 181
def read(key, options = nil)
log("read", key, options)
end
Defined in activesupport/lib/active_support/cache.rb line 181
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::Store