-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
9 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,16 +87,15 @@ console.log(me.email); // [email protected] | |
|
||
`new Redite([options])` | ||
|
||
| Name | Type | Default | Description | | ||
| ----------------------------- | ------------- | ------------------------ | ------------------------------------------------------------------------------------------------------------- | | ||
| options.client | ioredis.Redis | `new Redis(options.url)` | The Redis connection to piggyback off of. | | ||
| options.url | String | | The Redis URL to use for the automatically created connection. Not used if a client is passed. | | ||
| options.serialise | Function | `JSON.stringify` | Function that takes in a JS object and returns a string that can be sent to Redis. | | ||
| options.parse | Function | `JSON.parse` | Function that takes in a string and returns the JS object that it represents. | | ||
| options.deletedString | String | `@__DELETED__@` | String to use as a temporary placeholder when deleting root indexes in a list. | | ||
| options.unref | Boolean | `true` | Whether to run `.unref` on the Redis client, which allows Node to exit if the connection is idle. | | ||
| options.customInspection | Boolean | `false` | Whether to use a custom inspection for the Redis URL and Redis connection to hide potentially sensitive data. | | ||
| options.ignoreUndefinedValues | Boolean | `false` | Whether to ignore `undefined` as a base value when setting values. | | ||
| Name | Type | Default | Description | | ||
| ----------------------------- | ------------- | ------------------------ | ------------------------------------------------------------------------------------------------- | | ||
| options.client | ioredis.Redis | `new Redis(options.url)` | The Redis connection to piggyback off of. | | ||
| options.url | String | | The Redis URL to use for the automatically created connection. Not used if a client is passed. | | ||
| options.serialise | Function | `JSON.stringify` | Function that takes in a JS object and returns a string that can be sent to Redis. | | ||
| options.parse | Function | `JSON.parse` | Function that takes in a string and returns the JS object that it represents. | | ||
| options.deletedString | String | `@__DELETED__@` | String to use as a temporary placeholder when deleting root indexes in a list. | | ||
| options.unref | Boolean | `true` | Whether to run `.unref` on the Redis client, which allows Node to exit if the connection is idle. | | ||
| options.ignoreUndefinedValues | Boolean | `false` | Whether to ignore `undefined` as a base value when setting values. | | ||
|
||
#### **Accessing Objects** | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters