Skip to content

v0.0.1-alpha

Choose a tag to compare

@barddoo barddoo released this 29 Sep 22:02
· 179 commits to main since this release

Added

Core Features

  • Redis Serialization Protocol (RESP) implementation
  • Multi-client connection handling with concurrent support
  • Thread-safe in-memory data store
  • Comprehensive logging system for debugging

Data Types

  • String values with automatic type conversion
  • Integer values with type-safe operations
  • List data structure with full CRUD operations

String Commands

  • GET - Retrieve value by key
  • SET - Store key-value pairs
  • INCR - Increment integer value
  • DECR - Decrement integer value
  • DEL - Delete keys
  • EXISTS - Check key existence
  • TYPE - Get value type

List Commands

  • LPUSH - Push elements to the head of a list
  • RPUSH - Push elements to the tail of a list
  • LPOP - Pop elements from the head of a list
  • RPOP - Pop elements from the tail of a list
  • LLEN - Get list length
  • LINDEX - Get element by index
  • LSET - Set element at index
  • LRANGE - Get range of elements

Connection Commands

  • PING - Test server connectivity
  • ECHO - Echo messages back to client

Pub/Sub

  • PUBLISH - Publish messages to channels
  • SUBSCRIBE - Subscribe to channels
  • UNSUBSCRIBE - Unsubscribe from channels
  • Channel management and message routing
  • Client state handling for subscribers

Persistence

  • RDB (Redis Database) snapshot format support
  • Point-in-time dataset snapshots
  • Automatic RDB file loading on startup
  • CRC64 checksums for data integrity
  • Support for various RDB encoding types

Advanced Features

  • Key expiration with TTL support
  • Key-value allocator with eviction policy
  • Zero dynamic memory allocation during command execution
  • Memory-efficient operation using pre-allocated pools

Changed

  • Updated to Zig 0.15.1
  • Removed deprecated std.io functions for compatibility
  • Streamlined client and server initialization
  • Removed mutex from Store struct for better performance
  • Consolidated ZDB writer and reader into unified interface

Fixed

  • RDB file reading issues
  • Socket error handling in parser
  • Connection stream double-close issue
  • Undefined behavior in ZDB writer/reader structs

Documentation

  • Comprehensive README with quick start guide
  • Feature documentation and roadmap
  • Memory management explanations
  • Code examples for extending functionality

Infrastructure

  • Build system using Zig build tools
  • Unit test framework with test runner
  • Modular command registry system
  • Separation of concerns across modules