A high-performance cache server written in Rust using Actix-web. This server allows for storing, retrieving, and clearing cached data based on keys and tags.
- Store Data: Accepts JSON payloads to store key-value pairs along with tags.
- Retrieve Data: Allows retrieval of cached entries by their keys.
- Clear Cache by Tags: Supports clearing cache entries based on tags.
- Rust installed on your machine.
cargo
(comes with Rust).
- Clone the repository:
git clone https://github.com/yourusername/rust-cache-server.git
- Change directory to the project folder:
cd rust-cache-server
- Update dependencies:
cargo update
To run the server, use the following command:
cargo run
The server will start on http://localhost:5000
.
POST /cache
Request Body:
{
"key": "myKey",
"value": "myValue",
"tags": ["tag1", "tag2"]
}