mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-06 10:11:31 +00:00
new redis keys
This commit is contained in:
1 parent
c396a91881
commit
3702332669
1 file changed
+14
@@ -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)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user