Skip to content

Commit abcf83a

Browse files
author
bravemaster619
committed
doc: fix fetch comment
1 parent 9a807c0 commit abcf83a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

_src/lib/node_cache.coffee

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,11 +205,11 @@ module.exports = class NodeCache extends EventEmitter
205205
#
206206
# * `key` ( String | Number ): cache key
207207
# * `[ ttl ]` ( Number | String ): ( optional ) The time to live in seconds.
208-
# * `value` ( Function | Any ): if Function is given, its return value will be fetched, otherwise the value itself is fetched
208+
# * `value` ( Any ): if `Function` type is given, it will be executed and returned value will be fetched, otherwise the value itself is fetched
209209
#
210210
# **Example:**
211211
#
212-
# myCache.fetch "myKey", 10, () => "my_String value"
212+
# myCache.fetch "myKey", 10, () => "my_String value"
213213
#
214214
# myCache.fetch "myKey", "my_String value"
215215
#

0 commit comments

Comments
 (0)