Class: Bin::Compatibility

Inherits:
ActiveSupport::Cache::Store
  • Object
show all
Defined in:
lib/bin/compatibility.rb,
lib/bin/compatibility.rb,
lib/bin/compatibility.rb

Direct Known Subclasses

Store

Instance Method Summary collapse

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, options=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, options=nil, &block)
  super
  yield
end

#exist?(key, options = nil, &block) ⇒ Boolean

Returns:

  • (Boolean)


35
36
37
38
# File 'lib/bin/compatibility.rb', line 35

def exist?(key, options=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, options=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, options=nil, &block)
  super(key, value, options)
  yield
end