Skip to content

berrunder/caching_server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Caching proxy

Simple implementation of reverse proxy caching server in Rust for learning purpose.

Caches all incoming GET request by HTTP method and path. Uses LRU or LFU caching algorithm, default size of cache is 4096 items. Spawns 4 threads by default to process incoming requests.

Configuration

To configure backend server address, you need to create config.txt with its address in format 127.0.0.1:3000

To configure number of threads, use CACHING_SERVER_N_THREADS environment variable

To configure maximum cache size, use CACHING_SERVER_MAX_CACHE_SIZE environment variable

To configure caching alghoritm, use -a or --algo command-line option. Possible values: LFU, LRU (default LRU)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages