~fancycade/keep

A simple kv wrapper for ets
bbcce07d — Harley Swick a month ago
Fix README example and exclude docs
d31f717f — Harley Swick a month ago
Initial commit - basic working version

clone

read-only
https://git.sr.ht/~fancycade/keep
read/write
git@git.sr.ht:~fancycade/keep

You can also use your local clone with git send-email.

#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:

  • init/0
  • get/1
  • put/2
  • delete/1

Example usage:

keep:init(),

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

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

#Previous Work