You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -138,7 +138,8 @@ You can learn more on the `ioredis` package [here](https://github.com/luin/iored
138
138
## Using a custom reviver
139
139
140
140
By default, Javascript objects are serialized using the `JSON.stringify` and `JSON.parse` methods.
141
-
For handling custom objects, you may pass your own reviver function to `JSON.parse`.
141
+
This means that not all objects - such as Date or Regexp objects - will deserialize correctly without a custom reviver, that work out of the box with the default in-memory implementation.
142
+
For handling such objects, you may pass your own reviver function to `JSON.parse`, for example to handle Date objects the following reviver can be used:
0 commit comments