2020-04-22 16:36:34 -04:00
|
|
|
import { CompressionMethod } from "./constants";
|
|
|
|
|
|
2019-10-30 14:48:49 -04:00
|
|
|
export interface ArtifactCacheEntry {
|
|
|
|
|
cacheKey?: string;
|
|
|
|
|
scope?: string;
|
|
|
|
|
creationTime?: string;
|
|
|
|
|
archiveLocation?: string;
|
|
|
|
|
}
|
2020-01-06 13:05:50 -05:00
|
|
|
|
|
|
|
|
export interface CommitCacheRequest {
|
|
|
|
|
size: number;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface ReserveCacheRequest {
|
|
|
|
|
key: string;
|
|
|
|
|
version?: string;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface ReserveCacheResponse {
|
|
|
|
|
cacheId: number;
|
|
|
|
|
}
|
2020-04-22 16:36:34 -04:00
|
|
|
|
|
|
|
|
export interface CacheOptions {
|
|
|
|
|
compressionMethod?: CompressionMethod;
|
|
|
|
|
}
|