Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve async store error when sync api used #9

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -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.<br> `default: undefined (Use the default retry strategy)`|

see https://github.com/NodeRedis/node_redis#options-object-properties

Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down