lib/oleg: document cache function
This commit is contained in:
parent
1e930467cf
commit
81817d2731
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue