* @param {number|string} key * @return {T|undefined} The cached payload.
(key)
| 39 | * @return {T|undefined} The cached payload. |
| 40 | */ |
| 41 | get(key) { |
| 42 | const cacheable = this.cache_[key]; |
| 43 | if (cacheable) { |
| 44 | cacheable.access = ++this.access_; |
| 45 | return cacheable.payload; |
| 46 | } |
| 47 | return undefined; |
| 48 | } |
| 49 | |
| 50 | /** |
| 51 | * @param {number|string} key |
nothing calls this directly
no outgoing calls
no test coverage detected