Skip to content

Commit

Permalink
cacheable - updating jsDoc for CacheableMemory (#934)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredwray authored Dec 11, 2024
1 parent 403d872 commit 0e15c4b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/cacheable/src/memory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,8 @@ export class CacheableMemory extends Hookified {
* Sets the value of the key
* @param {string} key - The key to set the value
* @param {any} value - The value to set
* @param {number|string} [ttl] - Time to Live - If you set a number it is miliseconds, if you set a string it is a human-readable.
* @param {number|string|SetOptions} [ttl] - Time to Live - If you set a number it is miliseconds, if you set a string it is a human-readable.
* If you want to set expire directly you can do that by setting the expire property in the SetOptions.
* If you set undefined, it will use the default time-to-live. If both are undefined then it will not have a time-to-live.
* @returns {void}
*/
Expand Down

0 comments on commit 0e15c4b

Please sign in to comment.