ExGcloudPubsubPuller v1.0.1 ExGcloudPubsubPuller.MemoryStore View Source

Barebones in-memory store

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Retrieves a value from the MemoryStore, returning nil if the key doesn't exist.

Saves a value to the MemoryStore, updating it if the key already exists.

Starts the MemoryStore.

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Retrieves a value from the MemoryStore, returning nil if the key doesn't exist.

Link to this function

save(key, value) View Source
save(String.t(), any()) :: :ok

Saves a value to the MemoryStore, updating it if the key already exists.

Link to this function

start_link(initial_value) View Source
start_link(map()) :: {:ok, pid()} | {:error, any()}

Starts the MemoryStore.