Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions _src/lib/node_cache.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ module.exports = class NodeCache extends EventEmitter

# ## flushAll
#
# flush the whole data and reset the stats
# flush the whole data and reset the stats, additionally you can pass the object that you need when 'flush' is emitted. For ex: in case of response that you want to send after success or failure.
#
# **Example:**
#
Expand All @@ -494,7 +494,7 @@ module.exports = class NodeCache extends EventEmitter
# # vsize: 0
# # }
#
flushAll: ( _startPeriod = true )=>
flushAll: ( _startPeriod = true, obj )=>
# parameter just for testing

# set data empty
Expand All @@ -512,7 +512,7 @@ module.exports = class NodeCache extends EventEmitter
@_killCheckPeriod()
@_checkData( _startPeriod )

@emit( "flush" )
@emit( "flush", obj )

return

Expand Down