• Places
    • Home
    • Graphs
    • Prefixes
  • Admin
    • Users
    • Settings
    • Plugins
    • Statistics
  • CPACK
    • Home
    • List packs
    • Submit pack
  • Repository
    • Load local file
    • Load from HTTP
    • Load from library
    • Remove triples
    • Clear repository
  • Query
    • YASGUI SPARQL Editor
    • Simple Form
    • SWISH Prolog shell
  • Help
    • Documentation
    • Tutorial
    • Roadmap
    • HTTP Services
  • Login

3 library(redis_streams): Using Redis streams
All Application Manual Name SummaryHelp

  • 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.
ClioPatria (version V3.1.1-51-ga0b30a5)