Skua is a simple key-value database with a command-line interface inspired by Redis. It is designed to provide a straightforward yet powerful solution for managing key-value data in memory. If you're familiar with Redis, you'll appreciate the simplicity and utility of Skua.
- Add: Add a key-value pair to the database.
- Get: Retrieve the value associated with a key.
- Update: Update the value associated with a key.
- Delete: Delete a key-value pair from the database.
- Interactive command-line interface with a prompt.
Maximum Key length is 256 Bytes and Maximum value length is 1MB.
- Go installed on your machine.
- The
github.com/peterh/liner
package, which can be installed usinggo get github.com/peterh/liner
.
-
Clone the Skua repository:
git clone https://github.com/SohailRajput/Skua.git
-
Build the Skua binary:
cd skua
go build -o skua
- Run the Skua CLI:
./skua
Skua provides a command-line interface where you can interact with the database. Here are some example commands:
Skua> add mykey "my value"
Skua> get mykey
Skua> update mykey "my new value"
Skua> del mykey
Skua> exit
Although this is a tiny tool but contributions are welcome! If you'd like to contribute to the Skua project, please follow these steps:
1. Fork the repository.
2. Create a new branch for your feature or bug fix.
3. Make your changes.
4. Create a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
The Skua project is inspired by Redis.
If you have questions or need assistance, you can reach out to me on X: @0x05E or gmail [email protected].
Happy coding!