1 About the SWI-Prolog Redis client
All Application Manual Name SummaryHelp

  • Documentation
    • Reference manual
    • Packages
      • Redis -- a SWI-Prolog client for redis
        • About the SWI-Prolog Redis client
          • Redis and threads
          • Redis TLS support
          • Using Redis sentinels
          • About versions
          • Redis as a message brokering system
          • History

1.2 Redis TLS support

If SWI-Prolog includes the ssl library, the Redis client can connect to the server using TLS (SSL). Connecting requires the same three files as redis-cli requires: the root certificate file, a client certificate and the private key of the client certificate. Below is an example call to redis_server/3:

:- redis_server(swish, localhost:6379,
                [ user(bob),
                  password("topsecret"),
                  version(3),
                  tls(true),
                  cacert('ca.crt'),
                  key('client.key'),
                  cert('client.cert')
                ]).