Arno Kaimbacher
7915f66dd6
All checks were successful
CI Pipeline / japa-tests (push) Successful in 49s
- new classes TokenWorkerService.ts, TokenWorker.ts and ResumptionToken.ts for using REDIS with paging OAI results - deletd public/asstes2/langCodeMap.xml: integrated it directly in datasetxml2oai-pmh.xslt - added redis npm package - added TokenWorkerProvider.ts for using singleton of TokenWorkerService inside OaiController.ts - added config/oai.ts for oai related configs from .env-file - adapted XmlModel.ts for grting domDocument from database
11 lines
275 B
TypeScript
11 lines
275 B
TypeScript
import ResumptionToken from './ResumptionToken';
|
|
|
|
export default interface TokenWorkerContract {
|
|
ttl: number;
|
|
isConnected: boolean;
|
|
connect();
|
|
close();
|
|
get(key: string): Promise<ResumptionToken | null>;
|
|
set(token: ResumptionToken): Promise<string>;
|
|
}
|