DatasetUIDCacheManager ¶
Manages a cache of the last 50 uploaded datasets, tracking dataset hashes and their UIDs.
load_cache ¶
Loads the cache from disk if it exists, otherwise initializes an empty cache.
get_dataset_uid ¶
Generates hash by all received arguments and returns cached dataset uid if in cache, otherwise None.
add_dataset_uid ¶
Adds a new dataset to the cache, removing the oldest item if the cache exceeds 50 entries. Assumes the dataset is not already in the cache.
delete_uid ¶
Deletes an entry from the cache based on the dataset UID.