View Source Trifle.Stats.Driver.Process (Trifle.Stats v2.5.0)
In-memory Process driver for Trifle.Stats.
This driver stores all data in memory using a GenServer process. It's designed for development, testing, and scenarios where persistence is not required. Data is lost when the process terminates.
Usage
# Start the driver (can be supervised)
{:ok, pid} = Trifle.Stats.Driver.Process.start_link()
driver = Trifle.Stats.Driver.Process.new(pid)
# Use with configuration
config = Trifle.Stats.Configuration.configure(driver)
Summary
Functions
Returns a specification to start this module under a supervisor.
Clears all stored data. Useful for testing.
Returns the current state for debugging. Not part of the driver interface.
Description of the driver for debugging/logging purposes.
Starts the Process driver GenServer.
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
Clears all stored data. Useful for testing.
Returns the current state for debugging. Not part of the driver interface.
Description of the driver for debugging/logging purposes.
Starts the Process driver GenServer.