Options
All
  • Public
  • Public/Protected
  • All
Menu

An interface that all hit counter stores must implement.

Hierarchy

  • Store

Index

Methods

  • decrement(key: string): MaybePromise<void>
  • Method to decrement a client's hit counter.

    Parameters

    • key: string

      The identifier for a client.

    Returns MaybePromise<void>

  • Method that initializes the store, and has access to the options passed to the middleware too.

    remarks

    Use a constructor when possible

    Parameters

    Returns MaybePromise<void>

  • resetAll(): MaybePromise<void>
  • resetKey(key: string): MaybePromise<void>
  • Method to reset a client's hit counter.

    Parameters

    • key: string

      The identifier for a client.

    Returns MaybePromise<void>

Generated using TypeDoc