| Class | Moneta::Proxy |
| In: |
lib/moneta/proxy.rb
|
| Parent: | Object |
Proxy base class @api public
| adapter | [R] |
Delete the key from the store and return the current value
@param [Object] key @return [Object] current value @param [Hash] options @option options [Boolean] :raw Raw access without value transformation (See {Transformer}) @option options [String] :prefix Prefix key (See {Transformer}) @option options Other options as defined by the adapters or middleware @api public
Fetch value with key. Return nil if the key doesn‘t exist
@param [Object] key @param [Hash] options @option options [Integer] :expires Update expiration time (See {Expires}) @option options [Boolean] :raw Raw access without value transformation (See {Transformer}) @option options [String] :prefix Prefix key (See {Transformer}) @option options [Boolean] :sync Synchronized load ({Cache} reloads from adapter, {Adapters::Daybreak} syncs with file) @option options Other options as defined by the adapters or middleware @return [Object] value @api public
Store value with key
@param [Object] key @param [Object] value @param [Hash] options @option options [Integer] :expires Set expiration time (See {Expires}) @option options [Boolean] :raw Raw access without value transformation (See {Transformer}) @option options [String] :prefix Prefix key (See {Transformer}) @option options Other options as defined by the adapters or middleware @return value @api public