Files
renovate/lib/util/cache/repository/impl/null.ts
T
Gabriel-Ladzaretti 039fce8dc6 refactor(repository/cache): add support for adding various cache clients (#17146)
Co-authored-by: Nabeel Saabna <48175656+nabeelsaabna@users.noreply.github.com>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-08-21 12:53:20 +00:00

20 lines
377 B
TypeScript

import type { RepoCache, RepoCacheData } from '../types';
export class RepoCacheNull implements RepoCache {
private data: RepoCacheData = {};
// istanbul ignore next
load(): Promise<void> {
return Promise.resolve();
}
// istanbul ignore next
save(): Promise<void> {
return Promise.resolve();
}
getData(): RepoCacheData {
return this.data;
}
}