@types/express-brute-redis
TypeScript icon, indicating that this package has built-in type declarations

0.0.7 • Public • Published

Installation

npm install --save @types/express-brute-redis

Summary

This package contains type definitions for express-brute-redis (https://github.com/AdamPflug/express-brute-redis).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/express-brute-redis.

index.d.ts

import { ClientOpts, RedisClient } from "redis";

/**
 * @summary Redis store for Express Brute
 */
declare class RedisStore {
    /**
     * @summary constructor
     * @param options Options to configure the Redis client.
     */
    constructor(
        options?: ClientOpts & {
            client?: RedisClient | undefined;
            prefix?: string | undefined;
            host?: string | undefined;
            port?: number | string | undefined;
        },
        ...args: any[]
    );

    /**
     * @summary Sets a key in Redis storage.
     */
    set(key: string, value: string, lifetime?: number, callback?: (sender: RedisStore) => void): void;

    /**
     * @summary Gets a key in Redis storage.
     */
    get(key: string, callback?: (err: Error, data: any) => void): string | null;

    /**
     * @summary Resets a key in Redis storage.
     */
    reset(key: string, callback?: (err: Error, data: any) => void, ...args: any[]): void;

    static Redis: any;

    static defaults: {
        prefix: string;
        host: string;
        port: string;
    };
}

export = RedisStore;

Additional Details

  • Last updated: Tue, 07 Nov 2023 03:09:36 GMT
  • Dependencies: @types/redis

Credits

These definitions were written by Scott Harwell.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.00ts2.0
0.0.00ts2.1
0.0.00ts2.2
0.0.762ts5.6
0.0.762latest
0.0.762ts4.5
0.0.762ts4.6
0.0.762ts4.7
0.0.762ts4.8
0.0.762ts4.9
0.0.762ts5.0
0.0.762ts5.1
0.0.762ts5.2
0.0.762ts5.3
0.0.762ts5.4
0.0.762ts5.5
0.0.762ts5.7
0.0.452ts3.8
0.0.452ts3.9
0.0.452ts4.0
0.0.452ts4.1
0.0.452ts4.2
0.0.452ts4.3
0.0.452ts4.4
0.0.115ts2.3
0.0.115ts2.4
0.0.115ts2.5
0.0.115ts2.6
0.0.115ts2.7
0.0.115ts2.8
0.0.115ts2.9
0.0.115ts3.0
0.0.115ts3.1
0.0.210ts3.2
0.0.210ts3.3
0.0.210ts3.4
0.0.210ts3.5
0.0.31ts3.6
0.0.31ts3.7

Version History

VersionDownloads (Last 7 Days)Published
0.0.762
0.0.610
0.0.50
0.0.452
0.0.31
0.0.210
0.0.115
0.0.00

Package Sidebar

Install

npm i @types/express-brute-redis

Weekly Downloads

121

Version

0.0.7

License

MIT

Unpacked Size

4.94 kB

Total Files

5

Last publish

Collaborators

  • types