A command-line interface (CLI) tool for a caching server, built using Go. This project aims to provide a simple and efficient caching mechanism to improve the performance of web applications by reducing the load on the backend servers.
Originally posted at roadmap.sh
- In-memory caching: Store frequently accessed data in memory to reduce latency.
- TTL (Time-to-Live): Automatically expire cache entries after a specified duration.
- LRU (Least Recently Used): Evict the least recently used items when the cache reaches its capacity.
- CLI Interface: Easy-to-use command-line interface for managing the cache.
To install the Caching Proxy CLI, ensure you have Go installed, then run:
go install github.com/teresaromero/caching-proxy@latest
Start the caching server with the following command:
caching-proxy --port <number> --origin <url>
Delete data from the cache using:
caching-proxy --clear-cache
You can configure the caching server using a configuration file or environment variables. The default configuration file is config.yaml
.
Contributions are welcome! Please fork the repository and submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
For any questions or suggestions, please open an issue.