Skip to content

In-Memory Storage

The in-memory storage backend is designed for development, testing, or single-instance applications where persistence across restarts is not critical.

import "github.com/fco-gt/gopotency/storage/memory"
store := memory.NewMemoryStorage()
  • Zero Configuration: No external database or setup required.
  • High Performance: Data access is nearly instantaneous.
  • Atomic Locks: Implements thread-safe locking for a single instance.