Class: SpreeMenuChat::RateLimit

Inherits:
Object
  • Object
show all
Defined in:
app/models/spree_menu_chat/rate_limit.rb

Overview

A fixed-window request counter for one (store, identifier) pair — see the migration comment for why this is a counter, not a log. SpreeMenuChat::RateLimiter is the only thing that should read/write this directly.