Skip to content

Commit

Permalink
Fixing errors on Redis examples
Browse files Browse the repository at this point in the history
  • Loading branch information
leandrodamascena committed Jun 26, 2024
1 parent b418c38 commit 0eceb13
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
redis_values: dict[str, Any] = parameters.get_secret("redis_info", transform="json") # (1)!

redis_client = Redis(
host=redis_values.get("REDIS_HOST"),
port=redis_values.get("REDIS_PORT"),
host=redis_values.get("REDIS_HOST", "localhost"),
port=redis_values.get("REDIS_PORT", 6379),
password=redis_values.get("REDIS_PASSWORD"),
decode_responses=True,
socket_timeout=10.0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@


redis_client = Redis(
host=redis_values.get("REDIS_HOST"),
port=redis_values.get("REDIS_PORT"),
host=redis_values.get("REDIS_HOST", "localhost"),
port=redis_values.get("REDIS_PORT", 6379),
password=redis_values.get("REDIS_PASSWORD"),
decode_responses=True,
socket_timeout=10.0,
Expand Down

0 comments on commit 0eceb13

Please sign in to comment.