Class: ActionHandle::Adapters::Base

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/action_handle/adapters/base.rb

Direct Known Subclasses

CacheStore, RedisPool

Instance Method Summary collapse

Instance Method Details

#claim(_key, _value, _ttl) ⇒ Object

Raises:

  • (NotImplementedError)


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

Raises:

  • (NotImplementedError)


12
13
14
# File 'lib/action_handle/adapters/base.rb', line 12

def create(_key, _value, _ttl)
  raise NotImplementedError
end

#current?(_key, _value) ⇒ Boolean

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


24
25
26
# File 'lib/action_handle/adapters/base.rb', line 24

def current?(_key, _value)
  raise NotImplementedError
end

#expire(_key) ⇒ Object

Raises:

  • (NotImplementedError)


36
37
38
# File 'lib/action_handle/adapters/base.rb', line 36

def expire(_key)
  raise NotImplementedError
end

#renew(_key, _value, _ttl) ⇒ Object

Raises:

  • (NotImplementedError)


16
17
18
# File 'lib/action_handle/adapters/base.rb', line 16

def renew(_key, _value, _ttl)
  raise NotImplementedError
end

#taken?(_key) ⇒ Boolean

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


20
21
22
# File 'lib/action_handle/adapters/base.rb', line 20

def taken?(_key)
  raise NotImplementedError
end

#value(_key) ⇒ Object

Raises:

  • (NotImplementedError)


28
29
30
# File 'lib/action_handle/adapters/base.rb', line 28

def value(_key)
  raise NotImplementedError
end