(cb?: (err?: any) => void)
| 143 | } |
| 144 | |
| 145 | reload(cb?: (err?: any) => void): this { |
| 146 | this.store.get(this.id, (err, sess) => { |
| 147 | if (err) return cb && cb(err) |
| 148 | if (!sess) return cb && cb(new Error('failed to load session')) |
| 149 | this.store.createSession(this.req, sess) |
| 150 | cb && cb(null) |
| 151 | }) |
| 152 | return this |
| 153 | } |
| 154 | |
| 155 | destroy(cb?: (err?: any) => void): this { |
| 156 | this.store.destroy(this.id, cb) |