isExpired abstract method

bool isExpired()

Determines whether the rate limit entry has expired.

Implementations should compare the current system time with getResetTime to decide if this entry has exceeded its lifespan. When expired, a reset is typically triggered by RateLimitStorage.

Returns:

  • true if the entry has expired and should be reset.
  • false if the entry is still active.

Example

if (entry.isExpired()) {
  entry.reset();
}

Implementation

bool isExpired();