From 81817d27310b416f485b6939d15c578ede723553 Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Fri, 13 Feb 2015 11:34:05 -0800 Subject: [PATCH] lib/oleg: document cache function --- lib/oleg.moon | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/oleg.moon b/lib/oleg.moon index e9c0b1e..2f9415e 100644 --- a/lib/oleg.moon +++ b/lib/oleg.moon @@ -33,6 +33,7 @@ ret.delete = (tab, key) -> ret.set = (tab, key, value) -> request "POST", tab, key, value +--- cache gets a key from tab, optionally running the getter function if key is not in tab ret.cache = (tab, key, getter) -> data, err = ret.get tab, key