mirror of
https://github.com/ezolenko/rollup-plugin-typescript2.git
synced 2025-12-08 19:06:16 +00:00
40 lines
512 B
TypeScript
40 lines
512 B
TypeScript
import { ICache } from "./icache";
|
|
|
|
export class NoCache<DataType> implements ICache<DataType>
|
|
{
|
|
public exists(_name: string): boolean
|
|
{
|
|
return false;
|
|
}
|
|
|
|
public path(name: string): string
|
|
{
|
|
return name;
|
|
}
|
|
|
|
public match(_names: string[]): boolean
|
|
{
|
|
return false;
|
|
}
|
|
|
|
public read(_name: string): DataType | null | undefined
|
|
{
|
|
return undefined;
|
|
}
|
|
|
|
public write(_name: string, _data: DataType): void
|
|
{
|
|
return;
|
|
}
|
|
|
|
public touch(_name: string)
|
|
{
|
|
return;
|
|
}
|
|
|
|
public roll()
|
|
{
|
|
return;
|
|
}
|
|
}
|