2025-11-25 19:15:30 +01:00
2025-11-25 18:46:35 +01:00
2025-11-25 19:14:46 +01:00
2025-11-10 20:38:51 +01:00
2025-11-25 19:15:30 +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 github.com/matst80/go-redis-inventory

Usage

Import the package:

import "github.com/matst80/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

S
Description
No description provided
Readme 64 KiB
Languages
Go 100%