Class: Moneta::Wrapper

Inherits:
Proxy show all
Defined in:
lib/moneta/wrapper.rb

Overview

Wraps the calls to the adapter

Direct Known Subclasses

Lock, Logger, OptionMerger, Shared

Instance Attribute Summary

Attributes inherited from Proxy

#adapter

Instance Method Summary collapse

Methods inherited from Proxy

#initialize

Methods inherited from Base

#[], #[]=, #fetch

Methods included from Mixins::WithOptions

#expires, #prefix, #raw, #with

Constructor Details

This class inherits a constructor from Moneta::Proxy

Instance Method Details

#clear(options = {}) ⇒ Object



25
26
27
# File 'lib/moneta/wrapper.rb', line 25

def clear(options = {})
  wrap(:clear, options) { super }
end

#closeObject



29
30
31
# File 'lib/moneta/wrapper.rb', line 29

def close
  wrap(:close) { super }
end

#delete(key, options = {}) ⇒ Object



17
18
19
# File 'lib/moneta/wrapper.rb', line 17

def delete(key, options = {})
  wrap(:delete, key, options) { super }
end

#increment(key, amount = 1, options = {}) ⇒ Object



21
22
23
# File 'lib/moneta/wrapper.rb', line 21

def increment(key, amount = 1, options = {})
  wrap(:increment, key, amount, options) { super }
end

#key?(key, options = {}) ⇒ Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/moneta/wrapper.rb', line 5

def key?(key, options = {})
  wrap(:key?, key, options) { super }
end

#load(key, options = {}) ⇒ Object



9
10
11
# File 'lib/moneta/wrapper.rb', line 9

def load(key, options = {})
  wrap(:load, key, options) { super }
end

#store(key, value, options = {}) ⇒ Object



13
14
15
# File 'lib/moneta/wrapper.rb', line 13

def store(key, value, options = {})
  wrap(:store, key, value, options) { super }
end