Class: Bin::Compatibility
- Inherits:
-
ActiveSupport::Cache::Store
- Object
- ActiveSupport::Cache::Store
- Bin::Compatibility
- Defined in:
- lib/bin/compatibility.rb,
lib/bin/compatibility.rb,
lib/bin/compatibility.rb
Direct Known Subclasses
Instance Method Summary collapse
- #decrement(key, amount = 1) ⇒ Object
- #delete(key, options = nil, &block) ⇒ Object
- #delete_matched(matcher, options = nil, &block) ⇒ Object
- #exist?(key, options = nil, &block) ⇒ Boolean
- #increment(key, amount = 1) ⇒ Object
- #read(key, options = nil, &block) ⇒ Object
- #write(key, value, options = nil, &block) ⇒ Object
Instance Method Details
#decrement(key, amount = 1) ⇒ Object
8 9 10 |
# File 'lib/bin/compatibility.rb', line 8 def decrement(key, amount=1) yield end |
#delete(key, options = nil, &block) ⇒ Object
25 26 27 28 |
# File 'lib/bin/compatibility.rb', line 25 def delete(key, =nil, &block) super yield end |
#delete_matched(matcher, options = nil, &block) ⇒ Object
30 31 32 33 |
# File 'lib/bin/compatibility.rb', line 30 def delete_matched(matcher, =nil, &block) super yield end |
#exist?(key, options = nil, &block) ⇒ Boolean
35 36 37 38 |
# File 'lib/bin/compatibility.rb', line 35 def exist?(key, =nil, &block) super yield end |
#increment(key, amount = 1) ⇒ Object
4 5 6 |
# File 'lib/bin/compatibility.rb', line 4 def increment(key, amount=1) yield end |
#read(key, options = nil, &block) ⇒ Object
20 21 22 23 |
# File 'lib/bin/compatibility.rb', line 20 def read(key, =nil, &block) super yield end |
#write(key, value, options = nil, &block) ⇒ Object
15 16 17 18 |
# File 'lib/bin/compatibility.rb', line 15 def write(key, value, =nil, &block) super(key, value, ) yield end |