hpcflow.sdk.persistence.store_resource.JSONFileStoreResource#
- class hpcflow.sdk.persistence.store_resource.JSONFileStoreResource(app, name, filename, path, fs)#
Bases:
StoreResource
For caching reads and writes to a JSON file.
- Parameters:
app (App) – The main application context.
name (str) – The store name.
filename (str) – The name of the JSON file.
path (str | Path) – The path to the directory containing the JSON file.
fs (AbstractFileSystem) – The filesystem that the JSON file resides within.
Methods
Close the store for a particular action.
Open the store.
Attributes
The logger.
- close(action)#
Close the store for a particular action.
- property logger: Logger#
The logger.