Skip to content

Commit

Permalink
fix bug with memorystore sorted map set
Browse files Browse the repository at this point in the history
  • Loading branch information
treeben77 committed Sep 26, 2024
1 parent bda0e09 commit 694ec7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions rblxopencloud/memorystore.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ def set_key(
expected_status=[200, 404, 409],
params={"allowMissing": str(not exclusive_update).lower()},
json={
"id": key,
"Value": value,
"Ttl": f"{expiration_seconds}s",
(
Expand Down
2 changes: 2 additions & 0 deletions rblxopencloudasync/memorystore.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ async def set_key(
expected_status=[200, 404, 409],
params={"allowMissing": str(not exclusive_update).lower()},
json={
"id": key,
"Value": value,
"Ttl": f"{expiration_seconds}s",
(
Expand All @@ -229,6 +230,7 @@ async def set_key(
/sorted-maps/{urllib.parse.quote_plus(self.name)}/items",
authorization=self.__api_key,
expected_status=[200, 409],
params={"id": urllib.parse.quote_plus(key)},
json={
"id": key,
"value": value,
Expand Down

0 comments on commit 694ec7e

Please sign in to comment.