Class: ActionHandle::Adapters::Base
- Inherits:
-
Object
- Object
- ActionHandle::Adapters::Base
- Extended by:
- Forwardable
- Defined in:
- lib/action_handle/adapters/base.rb
Direct Known Subclasses
Instance Method Summary collapse
- #claim(_key, _value, _ttl) ⇒ Object
- #create(_key, _value, _ttl) ⇒ Object
- #current?(_key, _value) ⇒ Boolean
- #expire(_key) ⇒ Object
- #renew(_key, _value, _ttl) ⇒ Object
- #taken?(_key) ⇒ Boolean
- #value(_key) ⇒ Object
Instance Method Details
#claim(_key, _value, _ttl) ⇒ Object
32 33 34 |
# File 'lib/action_handle/adapters/base.rb', line 32 def claim(_key, _value, _ttl) raise NotImplementedError end |
#create(_key, _value, _ttl) ⇒ Object
12 13 14 |
# File 'lib/action_handle/adapters/base.rb', line 12 def create(_key, _value, _ttl) raise NotImplementedError end |
#current?(_key, _value) ⇒ Boolean
24 25 26 |
# File 'lib/action_handle/adapters/base.rb', line 24 def current?(_key, _value) raise NotImplementedError end |
#expire(_key) ⇒ Object
36 37 38 |
# File 'lib/action_handle/adapters/base.rb', line 36 def expire(_key) raise NotImplementedError end |
#renew(_key, _value, _ttl) ⇒ Object
16 17 18 |
# File 'lib/action_handle/adapters/base.rb', line 16 def renew(_key, _value, _ttl) raise NotImplementedError end |
#taken?(_key) ⇒ Boolean
20 21 22 |
# File 'lib/action_handle/adapters/base.rb', line 20 def taken?(_key) raise NotImplementedError end |
#value(_key) ⇒ Object
28 29 30 |
# File 'lib/action_handle/adapters/base.rb', line 28 def value(_key) raise NotImplementedError end |