weyoss / redis-smq

A simple high-performance Redis message queue for Node.js.
MIT License
596 stars 64 forks source link

Configuration is not present in the redis-smq #111

Closed h1t3ndr4 closed 10 months ago

h1t3ndr4 commented 10 months ago

In the docs it is mentioned that for configuration we will require {Configuration} from the redis-smq but when I did it is coming as undefined. In redis-smq => dist => index do not have Configuration class defined

To register a configuration object RedisSMQ provides a singleton class that may be used as shown bellow:

'use strict'; const { Configuration, ERedisConfigClient } = require('redis-smq');

const config = { redis: { client: ERedisConfigClient.IOREDIS, options: { host: '127.0.0.1', port: 6379, }, }, }

Configuration.getSetConfig(config);

but {Configuration} itself it is undefined when I try to require it from redis-smq

weyoss commented 10 months ago

It seems that you are using redis-smq@7 and you are referring to the documentation of a redis-smq@8 release candidate.

Here is a link for the latest RedisSMQ release redis-smq@7.2.3

manuganji commented 9 months ago

Ok, how do I complete the configuration now in 8 version?