View Source keep

A wrapper for ets providing a simple key-value api for keeping things around. Useful for when you need an adhoc ets table but too lazy to set it up yourself.

Provides only a few methods:

Example usage:

keep:init(),

keep:put(hello, world),
Result = keep:get(hello),
Result =:= world,

keep:delete(hello),
Result2 = keep:get(hello),
Result =:= undefined.

Previous Work