DriftTexture · function
takeEvicted
Drain the hashes whose pages have been taken, into out. Returns how many.
Explained in DriftTexture.
function takeEvicted(cache: PageCache, out: string[]): numberimport { takeEvicted } from '@driftengine/texture';Parameters
| Parameter | Type | Description |
|---|---|---|
cache | PageCache | |
out | string[] |
In depth
A caller that never drains this leaks a string per eviction, which is why it is a drain rather than a log: the list is a message to the residency table, and a message nobody reads is a bug in the caller that should grow rather than hide.