This package has been deprecated

Author message:

This package has been moved to @stackmason/nest-ioredis

nest-ioredis
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

NestJs Configuration Manager

Flexible, Docker-friendly, Dotenv-based Configuration Module for NestJs

Documentation

DEFAULT_REDIS_OPTIONS = {
    // Connection
    port: 6379,
    host: 'localhost',
    family: 4,
    connectTimeout: 10000,
    retryStrategy: function (times) {
        return Math.min(times * 50, 2000);
    },
    keepAlive: 0,
    noDelay: true,
    connectionName: null,
    // Sentinel
    sentinels: null,
    name: null,
    role: 'master',
    sentinelRetryStrategy: function (times) {
        return Math.min(times * 10, 1000);
    },
    natMap: null,
    enableTLSForSentinelMode: false,
    updateSentinels: true,
    // Status
    password: null,
    db: 0,
    // Others
    dropBufferSupport: false,
    enableOfflineQueue: true,
    enableReadyCheck: true,
    autoResubscribe: true,
    autoResendUnfulfilledCommands: true,
    lazyConnect: false,
    keyPrefix: '',
    reconnectOnError: null,
    readOnly: false,
    stringNumbers: false,
    maxRetriesPerRequest: 20,
    maxLoadingRetryTime: 10000
};

Change Log

See Changelog for more information.

Contributing

Contributions welcome! See Contributing.

Author

  • John Biundo (Y Prospect on Discord)

License

Licensed under the MIT License - see the LICENSE file for details.

Package Sidebar

Install

npm i nest-ioredis

Weekly Downloads

2

Version

1.0.2

License

MIT

Unpacked Size

15.5 kB

Total Files

28

Last publish

Collaborators

  • eropple
  • wonderpanda
  • johnbiundo