3 library(redis_streams): Using Redis streams
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
    • Packages
      • Redis -- a SWI-Prolog client for redis
        • library(redis_streams): Using Redis streams
          • xstream_set/3
          • xadd/4
          • xlisten/3
          • xlisten_group/5
          • xconsumer_stop/1
          • xhook/2
Availability::- use_module(library(redis_streams)).(can be autoloaded)
Source[det]xadd(+Redis, +Key, ?Id, +Data:dict)
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.