lib/oleg: document cache function

This commit is contained in:
Christine Dodrill 2015-02-13 11:34:05 -08:00
parent 1e930467cf
commit 81817d2731
1 changed files with 1 additions and 0 deletions

View File

@ -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