]> git.e2factory.org Git - e2factory.git/commitdiff
Add luadoc for cache.valid_server()
authorTobias Ulmer <tu@emlix.com>
Mon, 6 Aug 2012 09:51:38 +0000 (11:51 +0200)
committerTobias Ulmer <tu@emlix.com>
Mon, 6 Aug 2012 09:51:38 +0000 (11:51 +0200)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
generic/cache.lua

index 10cb6b3a3b9b4751090fe2fce9e3c24dab249c2b..2d84f10bd34673b169bfd3b4bf499941777666d3 100644 (file)
@@ -182,6 +182,11 @@ function cache.ce_by_server(c, server)
     return nil, new_error("no cache entry for server: %s", server)
 end
 
+--- check if server is valid
+-- @param c the cache table
+-- @param server the server name
+-- @return true if the server is valid, false otherwise
+-- @return an error object on failure
 function cache.valid_server(c, server)
     if cache.ce_by_server(c, server) then
         return true