Deletes the given keys and their associated values from the store.
Keys to delete from the store.
Promise that resolves when all keys have been deleted.
Retrieves the values associated with the given keys from the store.
Keys to retrieve values for.
Array of values associated with the given keys.
Sets the values for the given keys in the store.
Array of key-value pairs to set in the store.
Promise that resolves when all key-value pairs have been set.
Asynchronous generator that yields keys from the store. If a prefix is provided, it only yields keys that start with the prefix.
Optional
prefix: stringOptional prefix to filter keys.
AsyncGenerator that yields keys from the store.
Static
fromStatic method for initializing the class. Preforms a check to see if the directory exists, and if not, creates it.
Promise that resolves to an instance of the class.
File system implementation of the BaseStore using a dictionary. Used for storing key-value pairs in the file system.
Example
Security
Security Notice This file store can alter any text file in the provided directory and any subfolders. Make sure that the path you specify when initializing the store is free of other files.