proxystore.store.file
FileStore Implementation.
FileStoreKey ¶
FileStore ¶
Bases: Store[FileStoreKey]
File backend class.
Parameters:
-
name
(
str
) –name of the store instance.
-
store_dir
(
str
) –Path to directory to store data in. Note this directory will be deleted upon closing the store.
-
cache_size
(
int
) –Size of LRU cache (in # of objects). If 0, the cache is disabled. The cache is local to the Python process.
-
stats
(
bool
) –Collect stats on store operations.
Source code in proxystore/store/file.py
close ¶
Cleanup all files associated with the file system store.
Warning
Will delete the store_dir
directory.
Warning
This method should only be called at the end of the program when the store will no longer be used, for example once all proxies have been resolved.