class documentation
class ExecutionStore(object): (source)
Constructors: ExecutionStore.create(store_name, dataset_id, default_policy, collection_name)
, ExecutionStore(store_name, store_service, default_policy)
Execution store.
Parameters | |
store | the name of the store |
store | an
fiftyone.operators.store.service.ExecutionStoreService |
default | the default eviction policy for the store. |
Static Method | create |
Undocumented |
Method | __init__ |
Undocumented |
Method | clear |
Clears all the data in the store. |
Method | clear |
Clears the cache for the store. |
Method | delete |
Deletes a key from the store. |
Method | get |
Retrieves a value from the store by its key. |
Method | get |
Retrieves the metadata for the given key. |
Method | has |
Checks if the store has a specific key. |
Method | list |
Lists all keys in the store. |
Method | list |
Lists all stores in the execution store. |
Method | set |
Sets the value of a key in the specified store. |
Method | set |
Sets a value in the store with the eviction policy set to "evict". |
Method | update |
Updates the eviction policy for a specific key. |
Method | update |
Updates the TTL for a specific key. |
Instance Variable | store |
Undocumented |
Instance Variable | _default |
Undocumented |
Instance Variable | _store |
Undocumented |
@staticmethod
def create(store_name:
def create(store_name:
str
, dataset_id: ObjectId | None
= None, default_policy: str
= 'persist', collection_name: str | None
= None) -> ExecutionStore
:
(source)
¶
Undocumented
def __init__(self, store_name:
str
, store_service: ExecutionStoreService
, default_policy: str
= 'persist'):
(source)
¶
Undocumented
Sets the value of a key in the specified store.
Parameters | |
key:str | the key to set |
value:Any | the value to set |
ttl:None | an optional TTL in seconds |
policy:persist | the eviction policy for the key. Can be "persist" or "evict".
If "persist", the key will never be automatically removed.
If "evict", the key may be removed automatically if a TTL is set,
or manually via clear_cache . |
Returns | |
a fiftyone.store.models.KeyDocument |