Skip to content

Commit d012dae

Browse files
author
bravemaster619
committed
Merge remote-tracking branch 'node-cache/master'
2 parents 97fea68 + 9e35548 commit d012dae

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:**
@@ -231,7 +231,7 @@ module.exports = class NodeCache extends EventEmitter
231231
#
232232
# **Parameters:**
233233
#
234-
# * `keyValueSet` ( Object[] ): an array of object which includes key,value and ttl
234+
# * `keyValueSet` ( Object[] ): an array of objects which include key, value, and ttl
235235
#
236236
# **Example:**
237237
#
@@ -278,7 +278,7 @@ module.exports = class NodeCache extends EventEmitter
278278
#
279279
# **Parameters:**
280280
#
281-
# * `keys` ( String | Number | String|Number[] ): cache key to delete or a array of cache keys
281+
# * `keys` ( String | Number | String|Number[] ): cache key to delete or an array of cache keys
282282
#
283283
# **Return**
284284
#
@@ -384,7 +384,7 @@ module.exports = class NodeCache extends EventEmitter
384384
#
385385
# **Parameters:**
386386
#
387-
# * `key` ( String | Number ): cache key to check the ttl value
387+
# * `key` ( String | Number ): cache key to check the ttl value of
388388
#
389389
# **Return**
390390
#

0 commit comments

Comments
 (0)