read(name, options = nil) public

Reads 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.

Note, if data was written with the :expires_in or <tt>:version options, both of these conditions are applied before the data is returned.

Options are passed to the underlying cache implementation.

Show source
Register or log in to add new notes.