Skip to content

DaFox/htcache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTCache - Simple and fast cache with HTTP interface

Rust

Starting the service

htcache -a 0.0.0.0 -p 9000

Usage

Write data to the cache

PUT /<cache-key>
Content-Type: <content-type>
X-TTL: <ttl>
curl -XPUT http://localhost:3030/test --header "Content-Type: text/plain" --header "X-TTL: 120" --data-binary="hello world"

Read data from the cache

GET /<cache-key>
curl -XGET http://localhost:3030/test

About this demo

This demo application uses the following techniques and libraries:

  • "Warp" for creating an lightweight HTTP server with REST interface
  • "Clap" for creating a nice command line interface
  • "Tokio" to run the garbage collector asynchronous
  • "Serde" and "Serde JSON" to serialize and deserialize the cache

About

Simple and fast cache service with HTTP interface

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors