https://github.com/teresaromero/caching-proxy
https://github.com/teresaromero/caching-proxy
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/teresaromero/caching-proxy
- Owner: teresaromero
- License: mit
- Created: 2024-12-16T14:51:06.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-02-05T10:29:27.000Z (5 months ago)
- Last Synced: 2025-02-05T11:29:27.658Z (5 months ago)
- Language: Go
- Size: 46.9 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
[](https://github.com/teresaromero/caching-proxy/actions/workflows/compile-and-test.yml)
[](https://github.com/teresaromero/caching-proxy/actions/workflows/golangci-lint.yml)
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.