Skip to content

Commit f0a4dd5

Browse files
author
Joe Podwys
authored
Update README.md
1 parent 0ea24bf commit f0a4dd5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,12 @@ If you have a redis URL contained in an env variable (in process.env[redisEnv]),
7878

7979
* type: string
8080

81+
## JSON
82+
83+
By default, `cache-service-redis` attempts to `JSON.stringify` and `JSON.parse` values on `set` and `get` respectively. If it fails, it just sets/gets the raw value. This may not always meet your needs. As such, you can provide your own object with `stringify` and `parse` public functions.
84+
85+
* type: object
86+
8187
## redisMock
8288

8389
If you want to test your `cache-service-redis` implementation, you can pass a redis mock with this key and `cache-service-redis` will consume it for testing purposes. See the [Using A Redis Mock](#using-a-redis-mock) section for a more throrough explanation.

0 commit comments

Comments
 (0)