Skip to main content
Module

x/drash/src/services/rate_limiter/memory_store.ts>MemoryStore#increment

A microframework for Deno's HTTP server with zero third-party dependencies
Go to Latest
method MemoryStore.prototype.increment
import { MemoryStore } from "https://deno.land/x/drash@v2.7.0/src/services/rate_limiter/memory_store.ts";

Increase the number of hits given the ip

Parameters

key: string
  • The IP of the request

Returns

{ current: number; reset_time: Date; }

The current amount of requests received for key (hits) and the reset time