Skip to content

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.

Notifications You must be signed in to change notification settings

indrajithc/rust-cache-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust Cache Server

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.

Features

  • 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.

Getting Started

Prerequisites

  • Rust installed on your machine.
  • cargo (comes with Rust).

Installation

  1. Clone the repository:
git clone https://github.com/yourusername/rust-cache-server.git
  1. Change directory to the project folder:
cd rust-cache-server
  1. Update dependencies:
cargo update

Running the Server

To run the server, use the following command:

cargo run

The server will start on http://localhost:5000.

API Endpoints

Store Cache Entry

POST /cache

Request Body:

{
  "key": "myKey",
  "value": "myValue",
  "tags": ["tag1", "tag2"]
}

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published