Skip to content

Commit e14ef07

Browse files
committed
chore: fix comment typos
1 parent 4fb9a2c commit e14ef07

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

_src/lib/node_cache.coffee

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ module.exports = class NodeCache extends EventEmitter
9494
if (err = @_isInvalidKey( key ))?
9595
throw err
9696

97-
# get data and incremet stats
97+
# get data and increment stats
9898
if @data[ key ]? and @_check( key, @data[ key ] )
9999
@stats.hits++
100100
_ret = @_unwrap( @data[ key ] )
@@ -148,7 +148,7 @@ module.exports = class NodeCache extends EventEmitter
148148
# **Parameters:**
149149
#
150150
# * `key` ( String | Number ): cache key
151-
# * `value` ( Any ): A element to cache. If the option `option.forceString` is `true` the module trys to translate it to a serialized JSON
151+
# * `value` ( Any ): An element to cache. If the option `option.forceString` is `true` the module trys to translate it to a serialized JSON
152152
# * `[ ttl ]` ( Number | String ): ( optional ) The time to live in seconds.
153153
#
154154
# **Example:**
@@ -204,7 +204,7 @@ module.exports = class NodeCache extends EventEmitter
204204
#
205205
# **Parameters:**
206206
#
207-
# * `keyValueSet` ( Object[] ): an array of object which includes key,value and ttl
207+
# * `keyValueSet` ( Object[] ): an array of objects which include key, value, and ttl
208208
#
209209
# **Example:**
210210
#
@@ -251,7 +251,7 @@ module.exports = class NodeCache extends EventEmitter
251251
#
252252
# **Parameters:**
253253
#
254-
# * `keys` ( String | Number | String|Number[] ): cache key to delete or a array of cache keys
254+
# * `keys` ( String | Number | String|Number[] ): cache key to delete or an array of cache keys
255255
#
256256
# **Return**
257257
#
@@ -357,7 +357,7 @@ module.exports = class NodeCache extends EventEmitter
357357
#
358358
# **Parameters:**
359359
#
360-
# * `key` ( String | Number ): cache key to check the ttl value
360+
# * `key` ( String | Number ): cache key to check the ttl value of
361361
#
362362
# **Return**
363363
#

0 commit comments

Comments
 (0)