Skip to content

Commit 475bf83

Browse files
committed
use once on get_redis
1 parent cb8c442 commit 475bf83

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

reflex/utils/prerequisites.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
from reflex.config import Config, get_config
3737
from reflex.environment import environment
3838
from reflex.utils import console, net, path_ops, processes, redir
39-
from reflex.utils.decorator import cached_procedure
39+
from reflex.utils.decorator import cached_procedure, once
4040
from reflex.utils.exceptions import SystemPackageMissingError
4141
from reflex.utils.misc import get_module_path
4242
from reflex.utils.registry import get_npm_registry
@@ -517,6 +517,7 @@ def compile_or_validate_app(
517517
validate_app(check_if_schema_up_to_date=check_if_schema_up_to_date)
518518

519519

520+
@once
520521
def get_redis() -> Redis | None:
521522
"""Get the asynchronous redis client.
522523

0 commit comments

Comments
 (0)