PHP WebShell
Текущая директория: /usr/lib/node_modules/bitgo/node_modules/metro-cache/src/stores
Просмотр файла: AutoCleanFileStore.d.ts
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
* @oncall react_native
*/
import type {Options} from './FileStore';
import FileStore from './FileStore';
type CleanOptions = Readonly<
Omit<Options, keyof {intervalMs?: number; cleanupThresholdMs?: number}> & {
intervalMs?: number;
cleanupThresholdMs?: number;
}
>;
/**
* A FileStore that, at a given interval, stats the content of the cache root
* and deletes any file last modified a set threshold in the past.
*
* @deprecated This is not efficiently implemented and may cause significant
* redundant I/O when caches are large. Prefer your own cleanup scripts, or a
* custom Metro cache that uses watches, hooks get/set, and/or implements LRU.
*/
declare class AutoCleanFileStore<T> extends FileStore<T> {
constructor(opts: CleanOptions);
}
export default AutoCleanFileStore;
Выполнить команду
Для локальной разработки. Не используйте в интернете!