Skip to content

Commit

Permalink
Merge branch 'master' into next
Browse files Browse the repository at this point in the history
  • Loading branch information
thibaultcha committed Mar 10, 2017
2 parents 82d407e + 77e58d1 commit d34c17f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kong/tools/database_cache.lua
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ function _M.delete_all()
end

-- Retrieves a piece of data from the cache or loads it.
-- **IMPORTANT:** the callback function may not exit the request early by e.g.
-- sending a 404 response from the callback. The callback will be nested inside
-- lock/unlock calls, and hence it MUST return or the lock will not be
-- unlocked. Which in turn will lead to deadlocks and timeouts.
-- @param key the key under which to retrieve the data from the cache
-- @param ttl time-to-live for the entry (in seconds)
-- @param cb callback function. If no data is found under `key`, then the callback
Expand Down

0 comments on commit d34c17f

Please sign in to comment.