roger v2.4.0 Roger.Partition.Global.StatePersister.Filesystem View Source

Module implementing filesystem storage for Roger.Partition.Global state persistence.

The path in which the state files are saved can be configured like this:

config :roger, Roger.Partition.Global.StatePersister.Filesystem,
  path: "/path/to/files"

Note that in a distributed setup, it does not make sense to use this persister unless you are sharing the filesystem between the multiple machines.

Link to this section Summary

Functions

Called when the global state process starts

Called when the global state needs to be loaded

Called when the global state needs to be stored

Link to this section Functions

Called when the global state process starts.

Callback implementation for Roger.Partition.Global.StatePersister.init/1.

Called when the global state needs to be loaded.

Callback implementation for Roger.Partition.Global.StatePersister.load/1.

Called when the global state needs to be stored.

Callback implementation for Roger.Partition.Global.StatePersister.store/2.