5.0.10 • Published 6 months ago

@types/hapi__catbox-redis v5.0.10

Weekly downloads
1,335
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/hapi__catbox-redis

Summary

This package contains type definitions for @hapi/catbox-redis (https://github.com/hapijs/catbox-redis).

Details

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

index.d.ts

// Type definitions for @hapi/catbox-redis 5.0
// Project: https://github.com/hapijs/catbox-redis
// Definitions by: Simon Schick <https://github.com/SimonSchick>
//                 Silas Rech <https://github.com/lenovouser>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8

// tslint:disable-next-line:no-single-declare-module
declare module '@hapi/catbox-redis' {
    import { Redis, Cluster } from 'ioredis';
    import { EnginePrototype, ClientOptions, Client } from '@hapi/catbox';
    namespace CatboxRedis {
      interface CatboxRedisOptions extends ClientOptions {
        /**
         * Raw client.
         */
        client?: Redis | Cluster | undefined;
        /**
         * the Redis server URL (if url is provided, host, port, and socket are ignored)
         */
        url?: string | undefined;
        /**
         * the Redis server hostname.
         * Defaults to '127.0.0.1'.
         */
        host?: string | undefined;
        /**
         * the Redis server port or unix domain socket path.
         * Defaults to 6379.
         */
        port?: number | undefined;
        /**
         * the unix socket string to connect to (if socket is provided, host and port are ignored)
         */
        socket?: string | undefined;
        /**
         * the Redis authentication password when required.
         */
        password?: string | undefined;
        /**
         * the Redis database.
         */
        database?: string | undefined;
        /**
         * an array of redis sentinel addresses to connect to.
         */
        sentinels?: Array<{
          host: string;
        }> | undefined;
        /**
         * the name of the sentinel master.
         * (Only needed when sentinels is specified)
         */
        sentinelName?: string | undefined;
      }
    }
    class CatboxRedis<T> extends Client<T> {
      constructor(options: CatboxRedis.CatboxRedisOptions);
    }
    export = CatboxRedis;
  }

Additional Details

Credits

These definitions were written by Simon Schick, and Silas Rech.

5.0.6

8 months ago

5.0.10

6 months ago

5.0.9

7 months ago

5.0.8

8 months ago

5.0.7

8 months ago

5.0.5

2 years ago

5.0.4

3 years ago

5.0.3

3 years ago

5.0.2

4 years ago

5.0.1

4 years ago

5.0.0

5 years ago