Class: Notion::Middleware::RateLimiter::MemoryStore
- Inherits:
-
Object
- Object
- Notion::Middleware::RateLimiter::MemoryStore
- Defined in:
- lib/notion/middleware/rate_limiter.rb
Instance Method Summary collapse
-
#initialize ⇒ MemoryStore
constructor
A new instance of MemoryStore.
- #state(key, burst, now) ⇒ Object
Constructor Details
#initialize ⇒ MemoryStore
Returns a new instance of MemoryStore.
9 10 11 12 |
# File 'lib/notion/middleware/rate_limiter.rb', line 9 def initialize @states = {} @mutex = Mutex.new end |