https://github.com/jlowry/simple-mem-cache
https://github.com/jlowry/simple-mem-cache
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jlowry/simple-mem-cache
- Owner: jlowry
- Created: 2020-11-30T11:14:16.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2020-11-30T11:37:18.000Z (over 4 years ago)
- Last Synced: 2025-01-07T11:50:10.133Z (4 months ago)
- Language: Rust
- Size: 20.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# simple-mem-cache
A simple in-memory cache with an HTTP interface.
## Features
* HTTP POST http://127.0.0.1:8080/ with the value as UTF-8 body.
* HTTP GET http://127.0.0.1:8080/ replies with the value as body or 404 if no such key exists.
* Uses actix for high performance.
* Uses CHashMap as a backing store so only buckets are locked.
* Configurable logging uses log and log4rs.
* Configuration via file and environment.
* Built-in metrics server on port http://127.0.0.1:8081/metrics for Prometheus.