API Reference SuperCache v#1.7.0

Copy Markdown View Source

Modules

Example Order struct for SuperCache demonstrations.

Example Product struct for SuperCache demonstrations.

Example User struct for SuperCache demonstrations.

High-throughput, in-memory cache backed by ETS.

OTP Application callback module for SuperCache.

Unified startup and shutdown for SuperCache.

Manages per-scheduler write buffers used by SuperCache.lazy_put/1.

Cluster-aware startup and shutdown for SuperCache.

Shared helpers for distributed read/write operations.

Shared routing helpers used by distributed high-level stores.

Normalized error for distributed SuperCache operations.

Distributed cluster health monitor for SuperCache.

Maintains the cluster membership list and the partition → primary/replica mapping.

Low-overhead counter and latency-sample store for SuperCache observability.

Monitors a declared set of nodes and notifies SuperCache.Cluster.Manager when they join or leave, so partition maps are updated.

Deadline-bound quorum collection for distributed reads and writes.

Public façade for the opt-in Raft replication mode.

Thin boundary around the experimental raft_ex API.

Tracks the highest Raft log index applied to each local ETS partition.

Configuration defaults and validation for the opt-in :raft replication mode.

Maps SuperCache partitions to Raft server groups.

Serializes Raft membership changes and limits them to the partition's primary node, so concurrent cluster events cannot issue overlapping join/leave operations for the same Raft group.

Raft state machine that applies committed commands to a local ETS partition.

Owns the ETS tables used by the Raft adapter.

Lifecycle facade for the RaftEx system used by SuperCache's :raft mode.

Applies replicated writes on the local node and handles bulk partition transfers when a new node joins or a full sync is requested.

Routes SuperCache operations to the correct primary node and applies replication after each write.

Thin :erpc boundary that normalizes every distributed failure into a SuperCache.Cluster.Error.

Observability utilities for a running SuperCache cluster.

Three-phase commit (3PC) coordinator.

In-memory transaction log for the three-phase commit protocol.

Write-Ahead Log for fast strong consistency.

Owns the Write-Ahead Log ETS tables.

Central configuration store for SuperCache.

Backwards-compatibility shim for SuperCache.

Compatibility shim → use SuperCache.KeyValue directly.

Compatibility shim → use SuperCache.Queue directly.

Compatibility shim → use SuperCache.Stack directly.

Compatibility shim → use SuperCache.Struct directly.

GenServer owner for ETS tables managed by SuperCache.

Internal concurrent queue used by SuperCache buffer streams.

Internal stream processor for SuperCache buffer queues.

In-memory key-value namespaces backed by SuperCache ETS partitions.

Conditional logging for SuperCache.

Partition resolution and management for SuperCache.

Registry for partition ETS table names.

Named FIFO queues backed by SuperCache ETS partitions.

Named LIFO stacks backed by SuperCache ETS partitions.

Thin wrapper around :ets that provides the read/write/delete primitives used throughout SuperCache.

Compiled match specifications for ETS queries.

In-memory struct store backed by SuperCache ETS partitions.

Dynamic supervisor for user-spawned workers in SuperCache.

Mix Tasks

Run ETS query benchmarks comparing match vs select.