new redis keys

This commit is contained in:
Brandon Thomas committed 2021-08-26 23:59:51 -04:00
1 parent c396a91881
commit 3702332669
1 file changed
+14
+14
View File
@@ -5,13 +5,27 @@ impl RedisKeys {
/// This is a counter incremented with TTS inference.
/// We can use a job to read MySql and fix counts if they get out of sync.
/// These should be long-lived keys.
pub fn tts_model_usage_count(model_token: &str) -> String {
format!("ttsUseCount:{}", model_token)
}
/// This is a counter incremented with TTS inference.
/// We can use a job to read MySql and fix counts if they get out of sync.
/// These should be long-lived keys.
pub fn w2l_template_usage_count(template_token: &str) -> String {
format!("w2lUseCount:{}", template_token)
}
/// We write extra in-progress status information to keys.
/// These keys should have a TTL.
pub fn tts_inference_extra_status_info(inference_job_token: &str) -> String {
format!("ttsInferenceExtraStatus:{}", inference_job_token)
}
/// We write extra in-progress status information to keys.
/// These keys should have a TTL.
pub fn w2l_inference_extra_status_info(inference_job_token: &str) -> String {
format!("w2lInferenceExtraStatus:{}", inference_job_token)
}
}