提供用户某日刷新/预热缓存数量查询API

This commit is contained in:
刘祥超
2023-05-28 18:00:42 +08:00
parent afd9e3134d
commit be32bff7db
2 changed files with 177 additions and 47 deletions

View File

@@ -16,6 +16,9 @@ service HTTPCacheTaskKeyService {
// 更新一组Key状态
rpc updateHTTPCacheTaskKeysStatus(UpdateHTTPCacheTaskKeysStatusRequest) returns (RPCSuccess);
// 计算当天已经清理的Key数量
rpc countHTTPCacheTaskKeysWithDay(CountHTTPCacheTaskKeysWithDayRequest) returns (RPCCountResponse);
}
// 校验缓存Key
@@ -50,4 +53,10 @@ message UpdateHTTPCacheTaskKeysStatusRequest {
int64 nodeClusterId = 2; // 特意设置的冗余数据
string error = 3;
}
}
// 计算当天已经清理的Key数量
message CountHTTPCacheTaskKeysWithDayRequest {
string keyType = 1; // Key类型清理purge预热fetch
string day = 2; // 日期格式YYYYMMDD
}