Module riak_core_mochiglobal

Abuse module constant pools as a "read-only shared heap" (since erts 5.6) [1].

Copyright © 2010 Mochi Media, Inc.

Authors: Bob Ippolito (bob@mochimedia.com).

Description

Abuse module constant pools as a "read-only shared heap" (since erts 5.6) [1].

Function Index

delete/1Delete term stored at K, no-op if non-existent.
get/1Equivalent to get(K, undefined).
get/2Get the term for K or return Default.
put/2Store term V at K, replaces an existing term if present.

Function Details

delete/1

delete(K::atom()) -> boolean()

Delete term stored at K, no-op if non-existent.

get/1

get(K::atom()) -> any() | undefined

Equivalent to get(K, undefined).

get/2

get(K::atom(), T) -> any() | T

Get the term for K or return Default.

put/2

put(K::atom(), V::any()) -> ok

Store term V at K, replaces an existing term if present.


Generated by EDoc