ActiveSupport::Cache::WriteOptions (original) (raw)

Enables the dynamic configuration of Cache entry options while ensuring that conflicting options are not both set. When a block is given to ActiveSupport::Cache::Store#fetch, the second argument will be an instance of WriteOptions.

Methods

E

V

Instance Public methods

Source: show | on GitHub

def expires_at=(expires_at) @options.delete(:expires_in) @options[:expires_at] = expires_at end

Source: show | on GitHub

def expires_in=(expires_in) @options.delete(:expires_at) @options[:expires_in] = expires_in end

Source: show | on GitHub

def version=(version) @options[:version] = version end