Grains v0.3.7 Grains.Support.Cache

A grain to forward messages downstream and cache the last value it received.

This grain is meant for testing purposes, where another grain is to be tested.

Link to this section Summary

Link to this section Functions

Link to this function


Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

handle_pull(from, cached_value)

Link to this function

handle_push(msg, from, previous_cached_value)

Link to this function


See Grains.GenGrain.own_full_name/0.

See Grains.GenGrain.own_name/0.

See Grains.GenGrain.pull/0.

See Grains.GenGrain.pull/1.

Link to this function


See Grains.GenGrain.pull_with_tag/1.

Link to this function

pull_with_tag(from, tag)

See Grains.GenGrain.pull_with_tag/2.

See Grains.GenGrain.push/1.

Link to this function

push(short_name, msg)

See Grains.GenGrain.push/2.