PHP WebShell

Текущая директория: /usr/lib/node_modules/bitgo/node_modules/ox/core

Просмотр файла: Caches.ts

import type * as Address from './Address.js'
import { LruMap } from './internal/lru.js'

const caches = {
  checksum: /*#__PURE__*/ new LruMap<Address.Address>(8192),
}

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()
}

Выполнить команду


Для локальной разработки. Не используйте в интернете!