Skip to main content
Module

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

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

Constructors

new
MemoryStore(timeframe: number)

Methods

Mainly used in tests, to cleanup ops

increment(key: string): { current: number; reset_time: Date; }

Increase the number of hits given the ip