Schemas updated
This commit is contained in:
@@ -29,19 +29,19 @@ def example_get_json_iterator() -> None:
|
||||
"""Example of using the JSON iterator for large datasets."""
|
||||
keys = ["user", "profile", "*"]
|
||||
for row in RedisActions.get_json_iterator(list_keys=keys):
|
||||
print("Iterating over JSON row:", row.as_dict if isinstance(row.as_dict, dict) else row.as_dict())
|
||||
print("Iterating over JSON row:", row.as_dict if isinstance(row.as_dict, dict) else row.as_dict)
|
||||
|
||||
# def example_delete_key() -> None:
|
||||
# """Example of deleting a specific key."""
|
||||
# key = "user:profile:123"
|
||||
# result = RedisActions.delete_key(key)
|
||||
# print("Delete specific key:", result)
|
||||
#
|
||||
# def example_delete() -> None:
|
||||
# """Example of deleting multiple keys matching a pattern."""
|
||||
# keys = ["user", "profile", "*"]
|
||||
# result = RedisActions.delete(list_keys=keys)
|
||||
# print("Delete multiple keys:", result)
|
||||
def example_delete_key() -> None:
|
||||
"""Example of deleting a specific key."""
|
||||
key = "user:profile:123"
|
||||
result = RedisActions.delete_key(key)
|
||||
print("Delete specific key:", result)
|
||||
|
||||
def example_delete() -> None:
|
||||
"""Example of deleting multiple keys matching a pattern."""
|
||||
keys = ["user", "profile", "*"]
|
||||
result = RedisActions.delete(list_keys=keys)
|
||||
print("Delete multiple keys:", result)
|
||||
|
||||
def example_refresh_ttl() -> None:
|
||||
"""Example of refreshing TTL for a key."""
|
||||
|
||||
Reference in New Issue
Block a user