Skip to content

Commit fb1de17

Browse files
authored
fix(docs/cache): replace 'clone' in arguments table by 'makeCacheKey' (#607)
1 parent 9974115 commit fb1de17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/hooks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ Persistent, least-recently-used record cache for services.
190190
| `options` | Argument | Type | Default | Description |
191191
| --------- | ---------- | :--------------------------------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------ | ----------- |
192192
| `clone` | `Function` | `item => JSON.parse(` `JSON.stringify(item) )` | Function to perform a deep clone. See below. |
193-
| `clone` | `Function` | `key => key` | Function to convert record key to cache key. Use this to convert MongoDB/Mongoose ObjectId/bson keys to a cache key using `item._id.toString()`. |
193+
| `makeCacheKey` | `Function` | `key => key` | Function to convert record key to cache key. Use this to convert MongoDB/Mongoose ObjectId/bson keys to a cache key using `item._id.toString()`. |
194194
195195
- **Example**
196196

0 commit comments

Comments
 (0)