Alligator is simple distributed in-memory cache written in go.
- In-memory caching for fast data retrieval
- Supports connection via TCP protocol
- Simple and intuitive API
- Thread-safe operations
To install Alligator, use git clone
:
git clone github.com/Toolnado/alligator
Here's a basic example of how to use # Alligator:
- Сreate a binary using makefile:
make compile
- Launch the leader:
./build/app_amd64 --addr :3000
- Launch the followers:
./build/app_amd64 --addr :4000 --laddr :3000
You can configure the cache using flags:
- --addr - listener address;
- --laddr - cache leader address.
If the leader address is not specified, then the current instance will be the leader.
Contributions are welcome! Please fork the repository and submit a pull request with your changes. Be sure to follow the project's coding guidelines and include tests for any new features or bug fixes.
This project is licensed under the MIT License - see the LICENSE file for details.