Skip to content
Myr

Renamed MemoryStore -> Store.Memory

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

authored by visionmedia · committed by visionmedia · parent 315c050 · Browse files · 2 files+5 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

2 files+5 added−5 removed

  • tests:+2 added−2 removed
  • other:+3 added−3 removed

2 files+5 added−5 removed

modified:lib/express/plugins/session.js+3 added-3 removed
47 unmodified lines
48})4950// --- Store.Memory5152exports.MemoryStore = exports.Store.extend({52exports.Store.Memory = exports.Store.extend({53 54 /**55 * Datastore name.56 */
88 unmodified lines
145 * Initialize memory store and start reaper.146 *147 * Options:148 *149 * - dataStore constructor name of session data store, defaults to MemoryStore149 * - dataStore constructor name of session data store, defaults to Store.Memory150 * - lifetime lifetime of session in milliseconds, defaults to one day151 * - reapInterval interval in milliseconds in which to reap old sessions, defaults to one hour152 * 153 * @param {hash} options
1 unmodified line
155 */156 157 init: function(options) {158 process.mixin(this, options)159 this.store = new (this.dataStore || exports.MemoryStore)(options)159 this.store = new (this.dataStore || exports.Store.Memory)(options)160 this.startReaper()161 },162 163 /**
40 unmodified lines
modified:spec/spec.plugins.session.js+2 added-2 removed