Skip to main content
Deno 2 is finally here 🎉️
Learn more
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.8.1/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