Prerequisites
Before you begin, ensure you have:- Go 1.22 or later installed
redis-cliinstalled (for testing)- Basic familiarity with Redis commands
Quick Start
Build ValKeyper
Build the project using Go:This will create a
valkeyper executable in your current directory.Start the server
Run the ValKeyper server on the default port (6379):You should see output indicating the server is listening:
By default, ValKeyper listens on
0.0.0.0:6379, making it accessible from any network interface.Common Commands
ValKeyper supports the following Redis commands:Basic Operations
SET key value- Store a valueGET key- Retrieve a valueDEL key- Delete a keyKEYS *- List all keys
Advanced Features
EXPIRE key seconds- Set TTLINCR key- Increment counterTYPE key- Get key type
Transactions
MULTI- Begin transactionEXEC- Execute transactionDISCARD- Cancel transaction
Streams
XADD stream * field value- Add to streamXRANGE stream start end- Query rangeXREAD streams stream 0-0- Read from stream
Example: Using Transactions
Transactions ensure atomic execution of multiple commands:Example: Working with Streams
Streams enable event-driven data flows:Running on a Different Port
To run ValKeyper on a custom port:What’s Next?
Installation
Learn about building from source, configuration options, and system requirements
Replication
Set up master-slave replication for high availability
Persistence
Configure RDB persistence to save data to disk
Commands Reference
Explore all supported Redis commands