Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dnyfzr/acid-cache
๐งช Async Key Value Store + API
https://github.com/dnyfzr/acid-cache
api cache sqlite typescript
Last synced: 5 days ago
JSON representation
๐งช Async Key Value Store + API
- Host: GitHub
- URL: https://github.com/dnyfzr/acid-cache
- Owner: DNYFZR
- License: mit
- Created: 2024-06-10T15:46:54.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-06-17T21:19:34.000Z (5 months ago)
- Last Synced: 2024-06-18T20:36:06.440Z (5 months ago)
- Topics: api, cache, sqlite, typescript
- Language: TypeScript
- Homepage:
- Size: 97.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: License
Awesome Lists containing this project
README
Acid Cache ๐งช
Key-value store :
- Developed with Typescript & SQLite
- Persist to storage or run in-memory
- Demo API server built in Express### Setup
If the cache is configured with no parameters:
- An in-memory key-value store will be setup with a table named store
- The table has a key column (TEXT) and a value column (JSON)
Otherwise the following parameters can be set :
- If a cachePath is provided; the database will be stored there
- If a cacheTable is also provided; this will be used as the name
### Commands
#### Run Server
The server is configured to execute with npm run commands :
````bash
npm i
npm run start````
#### Server Test Commands
Initial testing for the cache API server demo has been developed in Python using the requests package :
````ps1
python -m pip install requestspython -m tests.get
python -m tests.post
python -m tests.put
python -m tests.delete````