* Set expires via max-age in `ms`. * * @param {Number} ms * @api public
(ms)
| 68 | */ |
| 69 | |
| 70 | set maxAge(ms) { |
| 71 | this.expires = 'number' === typeof ms ? |
| 72 | new Date(Date.now() + ms) : |
| 73 | ms; |
| 74 | }, |
| 75 | |
| 76 | /** |
| 77 | * Get expires max-age in `ms`. |
nothing calls this directly
no outgoing calls
no test coverage detected