ox
Version:
Ethereum Standard Library
19 lines • 410 B
JavaScript
import { BoundedMap } from './internal/lru.js';
const caches = {
checksum: /*#__PURE__*/ new BoundedMap(32_768),
};
export const checksum = caches.checksum;
/**
* Clears all global caches.
*
* @example
* ```ts
* import { Caches } from 'ox'
* Caches.clear()
* ```
*/
export function clear() {
for (const cache of Object.values(caches))
cache.clear();
}
//# sourceMappingURL=Caches.js.map