Skip to content

Commit

Permalink
README edit and site update
Browse files Browse the repository at this point in the history
  • Loading branch information
attipaci committed Sep 5, 2024
1 parent 342baf0 commit a677f4c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,14 +138,17 @@ The first step is to create a `Redis` object, with the server name or IP address
```
Before connecting to the Redis server, you may configure optional settings, such as the TCP port number to use (if not
the default 6379), and the database authentication password (if any):
the default 6379), and the database authentication (if any):
```c
Redis *redis = ...
// (optional) configure a non-standard port number
redisxSetPort(&redis, 7089);
// (optional) Configure the database user (since Redis 6.0, using ACL)
redisxSetUser(&redis, "johndoe");
// (optional) Configure the database password...
redisxSetPassword(&redis, mySecretPasswordString);
```
Expand All @@ -159,7 +162,7 @@ you application:
redisxSetTcpBuf(65536);
```
Optionally you can select the database index to use now (and also later, after connecting), if not the default (index
Optionally you can select the database index to use now (or later, after connecting), if not the default (index
0):
```c
Expand All @@ -169,8 +172,9 @@ Optionally you can select the database index to use now (and also later, after c
redisxSelectDB(redis);
```

(Note that you can switch the database index any time, with the caveat that it's not possible to change it for the
subscription client when there are active subscriptions.)
Note, that you can switch the database index any time, with the caveat that it's not possible to change it for the
subscription client when there are active subscriptions.


<a name="connecting"></a>
### Connecting
Expand Down

0 comments on commit a677f4c

Please sign in to comment.