/usr/local/lib/swipl/library/ext/redis/redis_streams.pl
All Application Manual Name SummaryHelp

  • ext
    • redis
      • redis.pl -- Redis client
      • redis_streams.pl -- Using Redis streams
        • xstream_set/3
        • xadd/4
        • xlisten/3
        • xlisten_group/5
        • xconsumer_stop/1
        • xhook/2
 xadd(+Redis, +Key, ?Id, +Data:dict) is det
Add a message to a the stream Key on Redis. The length of the stream can be capped using the xstream_set/3 option maxlen(Count). If Id is unbound, generating the id is left to the server and Id is unified with the returned id. The returned id is a string consisting of the time stamp in milliseconds and a sequence number. See Redis docs for details.