inmemory

command
v0.0.0-...-0fd1977 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package main demonstrates using s3db with the in-memory blob store — useful for local development, unit tests, and exploring the library without AWS credentials.

The in-memory store has the same concurrency semantics as real S3 (atomic PUT, strong consistency, ETag CAS), so correctness properties verified against it hold against S3 too.

This example spawns several concurrent "writers" that all increment a counter, then verifies the final value is exactly right — demonstrating that the CAS loop prevents lost updates under contention.

Run it:

go run ./examples/inmemory

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL