()
| 101 | } |
| 102 | |
| 103 | clear(): void { |
| 104 | const hadSize = this.map.size; |
| 105 | this.map.clear(); |
| 106 | this.hits = 0; |
| 107 | this.misses = 0; |
| 108 | this.evictions = 0; |
| 109 | if (hadSize > 0) log.debug("cleared", { hadSize }); |
| 110 | } |
| 111 | |
| 112 | stats(): EmbedCacheStats { |
| 113 | return { |