@thepuzzlemaker/dbpmstore v1.0.10
DBPMStore - Database Plus In-Memory Store
Dynamic, Cached Memory Store
DBPMStore is a storage system using a database plus an in-memory cached version of that database to speed up and simplify database operations. It is also extendable, meaning you are not confined to one database type, as you can either use an existing driver or code your own. It allows CRUD (Create, Read, Update, Delete) using three major functions: DBPMStorage.set(key, value)
, DBPMStorage.get(key)
, and DBPMStorage.unset(key)
. Keys must be strings but values can be any JSON/String-serializable type.
DBPMStore is written in TypeScript, compiled to JavaScript (ES6), compatible with (most) of the latest versions of NodeJS. It also includes type definitions, so you can use import
within TypeScript files.
It is recommended to create drivers in TypeScript, as the type definitions as well as TypeScript typing make it much easier to create class inheritance as well as in-editor code completion and errors for missing functions.
All DBPMStorage functions are asynchronous and therefore return promises.