https://github.com/thestaticturtle/nodecached
https://github.com/thestaticturtle/nodecached
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/thestaticturtle/nodecached
- Owner: TheStaticTurtle
- Created: 2020-06-29T18:51:51.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-03-23T18:09:25.000Z (about 5 years ago)
- Last Synced: 2025-10-10T13:16:18.887Z (6 months ago)
- Language: HTML
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#NodeCached
This is a very simplistic caching system writen in nodejs
Example configuration:
```json
{
"app": {
"host": "127.0.0.1",
"post": 2486
},
"cds": {
"base_url": "https://storage.sbg.cloud.ovh.net/v1/AUTH_09eb860780a34c9b959e3eebbf15da7f/storage/"
},
"caching": {
"cache_time": 3600,
"max_cache_size": 2048
}
}
```
|Option|Doc|
|----|-------|
|app.host|The host that the app is listening on|
|app.port|The port that the app is listening on|
|cds.base_url| Url of you backend content (In this case my bucket)|v
|caching.cache_time|Max lifetime of an inactive cached file (Time is reset to zero each request)|
|caching.max_cache_size|Max size in mb of the cache folder|