Grouper.Data.Group (Grouper v0.1.0) View Source

data layer driver for explicitly-created groups

Link to this section Summary

Functions

delete data value of a given type and a given key

enumerates all key-values of a given type

get data value of a given type and a given key

initialize group-driven data

store data value of a given type and a given key

Link to this section Types

Link to this section Functions

Specs

del(meta(), type(), key()) :: value() | nil

delete data value of a given type and a given key

Specs

enum(meta(), type()) :: [{{type(), key()}, value()}] | [{key(), value()}]

enumerates all key-values of a given type

Specify the special type :_ to read data of all types

Specs

get(meta(), type(), key()) :: value() | nil

get data value of a given type and a given key

Specs

init(meta(), opts :: keyword()) :: :ok

initialize group-driven data

Currently does nothing.

Link to this function

put(meta, type, key, val)

View Source

Specs

put(meta(), type(), key(), value()) :: value() | nil

store data value of a given type and a given key