Class: WithRateLimit::Cache

Inherits:
Object
  • Object
show all
Defined in:
lib/with_rate_limit/cache.rb

Direct Known Subclasses

Memory, Redis

Defined Under Namespace

Classes: Memory, Redis

Instance Method Summary collapse

Instance Method Details

#get(key) ⇒ Object



7
8
9
# File 'lib/with_rate_limit/cache.rb', line 7

def get(key)
  raise "Method 'get' must be implemented by a subclass"
end

#set(key, values) ⇒ Object



3
4
5
# File 'lib/with_rate_limit/cache.rb', line 3

def set(key, values)
  raise "Method 'set' must be implemented by a subclass"
end