Add --translation-cache

This commit is contained in:
Piero Toffanin
2025-12-22 13:18:16 -05:00
parent cd76ff43ca
commit a28d2bc1fc
6 changed files with 87 additions and 8 deletions
+2 -1
View File
@@ -40,8 +40,9 @@ def on_starting(server):
args = get_args()
from libretranslate import flood, scheduler, secret, storage
from libretranslate import flood, scheduler, secret, storage, cache
storage.setup(args.shared_storage)
cache.setup(args.translation_cache)
scheduler.setup(args)
flood.setup(args)
secret.setup(args)