proxystore.endpoint.storage¶
Blob storage interface for endpoints.
Storage ¶
Bases: Protocol
Endpoint storage protocol for blobs.
evict()
async
¶
exists()
async
¶
get()
async
¶
set()
async
¶
Store the blob associated with a key.
Parameters:
DictStorage ¶
Simple dictionary-based storage for blobs.
Source code in proxystore/endpoint/storage.py
evict()
async
¶
exists()
async
¶
get()
async
¶
Get a blob from storage.
Parameters:
-
key
(
str
) –Key associated with the blob to get.
-
default
(
bytes | None
) –Default return value if the blob does not exist.
Returns:
-
bytes | None
–The blob associated with the key or the value of
default
.
Source code in proxystore/endpoint/storage.py
set()
async
¶
Store the blob associated with a key.
Parameters:
SQLiteStorage ¶
SQLite storage protocol for blobs.
Source code in proxystore/endpoint/storage.py
db()
async
¶
Get the database connection object.
Source code in proxystore/endpoint/storage.py
evict()
async
¶
exists()
async
¶
Check if a blob exists in the storage.
Parameters:
-
key
(
str
) –Key associated with the blob to check.
Returns:
-
bool
–If a blob associated with the key exists.
Source code in proxystore/endpoint/storage.py
get()
async
¶
Get a blob from storage.
Parameters:
-
key
(
str
) –Key associated with the blob to get.
-
default
(
bytes | None
) –Default return value if the blob does not exist.
Returns:
-
bytes | None
–The blob associated with the key or the value of
default
.
Source code in proxystore/endpoint/storage.py
set()
async
¶
Store the blob associated with a key.
Parameters: