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
expires_at=(expires_at)Link
def expires_at=(expires_at) @options.delete(:expires_in) @options[:expires_at] = expires_at end
expires_in=(expires_in)Link
def expires_in=(expires_in) @options.delete(:expires_at) @options[:expires_in] = expires_in end
version=(version)Link
def version=(version) @options[:version] = version end