"Fossies" - the Fresh Open Source Software Archive

Member "Signal-Server-11.96.0/service/src/main/resources/lua/renew_presence.lua" (20 Feb 2024, 201 Bytes) of package /linux/www/Signal-Server-11.96.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 presenceKey  = KEYS[1]
    2 local presenceUuid = ARGV[1]
    3 local expireSeconds = ARGV[2]
    4 
    5 if redis.call("GET", presenceKey) == presenceUuid then
    6     redis.call("EXPIRE", presenceKey, expireSeconds)
    7 end