Skip to content
Myr

Refactored Session#startReaper() with ext millisecond conversions

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by visionmedia · committed by visionmedia · parent acd2852 · Browse files · 1 file+2 added−5 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−5 removed

  • other:+2 added−5 removed

1 file+2 added−5 removed

modified:lib/express/plugins/session.js+2 added-5 removed
166 unmodified lines
167 * @api private168 */169 170 startReaper: function() {171 var self = this,172 oneDay = 86400000,173 oneHour = 3600000171 setInterval(function(){175 self.store.reap(self.lifetime || oneDay)176 }, self.reapInterval || self.reapEvery || oneHour)172 this.store.reap(this.lifetime || (1).day)173 }, this.reapInterval || this.reapEvery || (1).hour, this)174 }175 },176 177 // --- Events
24 unmodified lines