Skip to content

Commit

Permalink
add option to select cache keys
Browse files Browse the repository at this point in the history
  • Loading branch information
zer0dss committed Jan 26, 2025
1 parent 54a7f5e commit b23f733
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion edsl/coop/coop.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,7 @@ def remote_cache_create_many(
def remote_cache_get(
self,
exclude_keys: Optional[list[str]] = None,
select_keys: Optional[list[str]] = None,
) -> list[CacheEntry]:
"""
Get all remote cache entries.
Expand All @@ -560,10 +561,12 @@ def remote_cache_get(
"""
if exclude_keys is None:
exclude_keys = []
if select_keys is None:
select_keys = []
response = self._send_server_request(
uri="api/v0/remote-cache/get-many",
method="POST",
payload={"keys": exclude_keys},
payload={"keys": exclude_keys, "selected_keys": select_keys},
timeout=40,
)
self._resolve_server_response(response)
Expand Down

0 comments on commit b23f733

Please sign in to comment.