2025-11-25 19:05:10 +01:00
2025-11-25 18:46:35 +01:00
2025-11-25 19:05:10 +01:00
2025-11-10 20:38:51 +01:00
2025-11-25 19:05:10 +01:00

Go Redis Inventory

A Go library for managing inventory using Redis.

Features

  • Get and update inventory quantities
  • Reserve inventory with atomic operations using Lua scripts
  • Listen to inventory changes via Redis pub/sub

Installation

go get git.k6n.net/go-redis-inventory

Usage

Import the package:

import "git.k6n.net/go-redis-inventory/pkg/inventory"

Create a Redis client and initialize the service:

client := redis.NewClient(&redis.Options{
    Addr: "localhost:6379",
})
service, err := inventory.NewRedisInventoryService(client)
if err != nil {
    log.Fatal(err)
}

Dependencies

Description
No description provided
Readme 35 KiB
Languages
Go 100%