src/trust/dto/cache-stats-response.dto.ts

Index

Properties

Properties

jwtCacheSize
Type : number
Decorators :
@ApiProperty({description: 'Number of cached JWT status list entries'})
size
Type : number
Decorators :
@ApiProperty({description: 'Number of cached status list entries'})
uris
Type : string[]
Decorators :
@ApiProperty({description: 'Cached status list URIs', type: undefined})
import { ApiProperty } from "@nestjs/swagger";

class TrustListCacheStatsDto {
    @ApiProperty({ description: "Whether the trust list cache is populated" })
    hasCache!: boolean;
}

class StatusListCacheStatsDto {
    @ApiProperty({ description: "Number of cached status list entries" })
    size!: number;

    @ApiProperty({ description: "Number of cached JWT status list entries" })
    jwtCacheSize!: number;

    @ApiProperty({ description: "Cached status list URIs", type: [String] })
    uris!: string[];
}

export class CacheStatsResponseDto {
    @ApiProperty({ type: TrustListCacheStatsDto })
    trustListCache!: TrustListCacheStatsDto;

    @ApiProperty({ type: StatusListCacheStatsDto })
    statusListCache!: StatusListCacheStatsDto;
}

results matching ""

    No results matching ""