roger v1.0.0 Roger.Partition.Global.StatePersister.Filesystem

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.

Summary

Functions

init(id)

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

load(id)

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

store(id, data)

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