cnpmcore
Version:
Private NPM Registry for Enterprise
15 lines (14 loc) • 1.03 kB
TypeScript
import type { DIST_NAMES } from '../core/entity/Package.ts';
import { ProxyCache as ProxyCacheEntity } from '../core/entity/ProxyCache.ts';
import { type PageOptions, type PageResult } from '../core/util/EntityUtil.ts';
import { AbstractRepository } from './AbstractRepository.ts';
import type { ProxyCache as ProxyModeCachedFilesModel } from './model/ProxyCache.ts';
export declare class ProxyCacheRepository extends AbstractRepository {
private readonly ProxyCache;
saveProxyCache(proxyCacheEntity: ProxyCacheEntity): Promise<ProxyModeCachedFilesModel>;
findProxyCache(fullname: string, fileType: DIST_NAMES, version?: string): Promise<ProxyCacheEntity | null>;
findProxyCaches(fullname: string, version?: string): Promise<import("leoric").Collection<ProxyModeCachedFilesModel>>;
listCachedFiles(page: PageOptions, fullname?: string): Promise<PageResult<ProxyCacheEntity>>;
removeProxyCache(fullname: string, fileType: string, version?: string): Promise<void>;
truncateProxyCache(): Promise<void>;
}