diff --git a/Readme.md b/Readme.md index a0f9bae..bad0b61 100644 --- a/Readme.md +++ b/Readme.md @@ -1,8 +1,6 @@ -***This is a work in progress.*** +# Redis Context store plugin -# Redis plugin - -The Redis plugin holds context data in the Redis. +The Redis Context store plugin holds context data in the Redis. ## Pre-requisite @@ -40,8 +38,7 @@ It needs following configuration options: | prefix | If set, the string used to prefix all used keys. | | password | If set, the plugin will run Redis AUTH command on connect. *Note: the password will be sent as plaintext.* | | tls | An object containing options to pass to tls.connect to set up a TLS connection to the server. | -| retry_strategy | Specifies a function to reconnect if the connection to Redis is lost. | -| | `default: undefined (Use the default retry strategy)` | +| retry_strategy | Specifies a function to reconnect if the connection to Redis is lost.
`default: undefined (Use the default retry strategy)`| see https://github.com/NodeRedis/node_redis#options-object-properties diff --git a/index.js b/index.js index 6e26130..66e7146 100644 --- a/index.js +++ b/index.js @@ -228,7 +228,7 @@ Redis.prototype.close = function () { Redis.prototype.get = function (scope, key, callback) { if (typeof callback !== 'function') { - throw new Error('Callback must be a function'); + throw new Error('Async storage - a callback must be defined'); } try { if (!Array.isArray(key)) {