Skip to content

Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.

335 B
Raw Blame
export interface CacheRateLimitState {
  // Absolute expiration timestamps in milliseconds, including one per request.
  hits: number[]
  blockExpiresAt: number
}

export interface CacheRateLimitResult {
  totalHits: number
  // Remaining durations in seconds.
  timeToExpire: number
  isBlocked: boolean
  timeToBlockExpire: number
}