Copyright © 2022, Fred Youhanaie
Authors: Fred Youhanaie (fyrlang@anydata.co.uk
).
When espace
instances are started, a number of instance specific
persistent_term
entries are created. The functions in this
module provide access to these entries.
persistent_term
entries are expected to have the following
format: {espace, Inst_name, Key}
, where, Key
identifies the
particular espace
item, such as server name or ETS table name,
and Inst_name
is the espace instance name, which is the same as
the application name. For the unnamed instance the Inst_name
is
espace
.
pt_key() = {espace, atom(), atom()}
erase/1 | Remove all the persistent terms for a given espace instance. |
get/2 | Lookup the instance Key for Inst_name . |
put/3 | Create an espace persistent term. |
erase(Inst_name::atom()) -> [] | [{pt_key(), term()}]
Remove all the persistent terms for a given espace
instance.
get(Inst_name::atom(), Key::atom()) -> undefined | term()
Lookup the instance Key
for Inst_name
.
undefined
is returned.
put(Inst_name::atom(), Key::atom(), Term::term()) -> ok
Create an espace
persistent term.
Generated by EDoc