Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/teresaromero/caching-proxy
https://github.com/teresaromero/caching-proxy
Last synced: 27 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/teresaromero/caching-proxy
- Owner: teresaromero
- License: mit
- Created: 2024-12-16T14:51:06.000Z (27 days ago)
- Default Branch: main
- Last Pushed: 2024-12-16T15:05:02.000Z (27 days ago)
- Last Synced: 2024-12-16T16:23:58.141Z (27 days ago)
- Language: Go
- Size: 27.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Caching Proxy
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](https://roadmap.sh/projects/caching-server)
## Features
- **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.## Installation
To install the Caching Proxy CLI, ensure you have Go installed, then run:
```sh
go install github.com/teresaromero/caching-proxy@latest
```## Usage
### Starting the Server
Start the caching server with the following command:
```sh
caching-proxy --port --origin
```### Clear cache
Delete data from the cache using:
```sh
caching-proxy --clear-cache
```## Configuration
You can configure the caching server using a configuration file or environment variables. The default configuration file is `config.yaml`.
## Contributing
Contributions are welcome! Please fork the repository and submit a pull request.
## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
## Contact
For any questions or suggestions, please open an issue.