This project is a Memcached protocol proxy server that uses Redis to store and retrieve data. It is written in Go.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Go 1.22.4 or later
- Redis server
Clone the repository:
git clone https://github.com/bssth/memcached-redis-proxy.gitNavigate to the project directory:
cd memcached-redis-proxyInstall the dependencies:
go mod downloadYou can start the server with the following command:
go run main.goBy default, the server listens on port 11211 and connects to a Redis server at localhost:6379. You can customize these settings with command-line flags:
go run main.go -port=11212 -redis=localhost:6380redis-password and redis-db are also supported.
You can run test with the following command:
go run testing/main.goBy default, test connects to a server at localhost:11211. You can customize this setting with a command-line flag:
go run testing/main.go -dsn=localhost:11212Feel free to submit pull requests.
See LICENSE.md for details.