Raxol.Core.Runtime.ProcessStore (Raxol v2.0.1)

View Source

Replacement for Process dictionary usage. Provides a functional alternative using Agent for state storage.

Summary

Functions

Returns a specification to start this module under a supervisor.

Clears all values from the store.

Deletes a value from the store.

Gets a value from the store.

Gets all values from the store.

Gets and updates a value atomically.

Puts a value in the store.

Starts a new process store.

Updates a value in the store using a function.

Functions

child_spec(arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

clear()

Clears all values from the store.

delete(key)

Deletes a value from the store.

get(key, default \\ nil)

Gets a value from the store.

get_all()

Gets all values from the store.

get_and_update(key, fun)

Gets and updates a value atomically.

put(key, value)

Puts a value in the store.

start_link(initial_state \\ %{})

Starts a new process store.

update(key, default, fun)

Updates a value in the store using a function.