• 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

2 library(redis): Redis client
All Application Manual Name SummaryHelp

  • Documentation
    • Reference manual
    • Packages
      • Redis -- a SWI-Prolog client for redis
        • library(redis): Redis client
          • redis_server/3
          • redis_connect/1
          • redis_connect/3
          • tls_verify/5
          • sentinel_slave/4
          • redis_disconnect/1
          • redis_disconnect/2
          • redis/2
          • redis/3
          • redis/1
          • redis_write/2
          • redis_read/2
          • redis_get_list/3
          • redis_get_list/4
          • redis_set_list/3
          • redis_get_hash/3
          • redis_set_hash/3
          • redis_array_dict/3
          • redis_scan/3
          • redis_sscan/4
          • redis_hscan/4
          • redis_zscan/4
          • redis_current_command/2
          • redis_current_command/3
          • redis_property/2
          • redis_subscribe/4
          • redis_subscribe/2
          • redis_unsubscribe/2
          • redis_current_subscription/2
Availability::- use_module(library(redis)).(can be autoloaded)
Source[det]redis_get_list(+Redis, +Key, -List)
[det]redis_get_list(+Redis, +Key, +ChunkSize, -List)
Get the content of a Redis list in List. If ChunkSize is given and smaller than the list length, List is returned as a lazy list. The actual values are requested using redis LRANGE requests. Note that this results in O(N^2) complexity. Using a lazy list is most useful for relatively short lists holding possibly large items.

Note that values retrieved are strings, unless the value was added using Term as prolog.

It seems possible for LLEN to return OK. I don't know why. As a work-around we return the empty list rather than an error.

See also
lazy_list/2 for a discussion on the difference between lazy lists and normal lists.
ClioPatria (version V3.1.1-51-ga0b30a5)