tethys.backend/app/Library/Oai/TokenWorkerContract.ts

12 lines
350 B
TypeScript
Raw Normal View History

2024-03-14 19:25:27 +00:00
import ResumptionToken from './ResumptionToken.js';
export default abstract class TokenWorkerContract {
abstract ttl: number;
abstract isConnected: boolean;
abstract connect(): void;
abstract close(): void;
abstract get(key: string): Promise<ResumptionToken | null>;
abstract set(token: ResumptionToken): Promise<string>;
}