"Fossies" - the Fresh Open Source Software Archive

Member "Signal-Server-10.64.0/service/src/main/resources/lua/apn/insert.lua" (19 Sep 2023, 435 Bytes) of package /linux/www/Signal-Server-10.64.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Lua source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 local pendingNotificationQueue = KEYS[1]
    2 local endpoint = KEYS[2]
    3 
    4 local timestamp = ARGV[1]
    5 local interval = ARGV[2]
    6 local account = ARGV[3]
    7 local deviceId = ARGV[4]
    8 
    9 redis.call("HSET", endpoint, "created", timestamp)
   10 redis.call("HSET", endpoint, "interval", interval)
   11 redis.call("HSET", endpoint, "account", account)
   12 redis.call("HSET", endpoint, "device", deviceId)
   13 
   14 redis.call("ZADD", pendingNotificationQueue, timestamp, endpoint)