2011-02-02

Tokyo Tyrant ttexpire.lua

  1. function expire()  
  2.    local args = {}  
  3.    local cdate = string.format("%d", _time())  
  4.    table.insert(args, "addcond\0x\0NUMLE\0" .. cdate)  
  5.    table.insert(args, "out")  
  6.    local res = _misc("search", args)  
  7.    if not res then  
  8.       _log("expiration was failed", 2)  
  9.    end  
  10.    print("rnum=" .. _rnum() .. "  size=" .. _size())  
  11. end  

0 件のコメント:

コメントを投稿