Lines Matching refs:ttl
154 ttl,
273 this.ttl = ttl || maxAge || 0
274 if (this.ttl) {
275 if (!isPosInt(this.ttl)) {
277 'ttl must be a positive integer if specified'
284 if (this.max === 0 && this.ttl === 0 && this.maxSize === 0) {
286 'At least one of max, maxSize, or ttl is required'
304 deprecatedOption('maxAge', 'ttl')
319 this.setItemTTL = (index, ttl, start = perf.now()) => { argument
320 this.starts[index] = ttl !== 0 ? start : 0
321 this.ttls[index] = ttl
322 if (ttl !== 0 && this.ttlAutopurge) {
327 }, ttl + 1)
341 status.ttl = this.ttls[index]
344 status.remainingTTL = status.now + status.ttl - status.start
628 entry.ttl = this.ttls[i]
662 ttl = this.ttl, property
730 if (ttl !== 0 && this.ttl === 0 && !this.ttls) {
734 this.setItemTTL(index, ttl, start)
961 ttl = this.ttl, property
991 ttl, property