Skip to content

Commit 4d2ea3e

Browse files
Lorenzo ManganiLorenzo Mangani
Lorenzo Mangani
authored and
Lorenzo Mangani
committed
resync
1 parent 49ed561 commit 4d2ea3e

File tree

2 files changed

+352
-41
lines changed

2 files changed

+352
-41
lines changed

docs/README.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,14 @@ This extension provides Redis client functionality for DuckDB, allowing you to i
33

44
## Features
55
Currently supported Redis operations:
6-
- `redis_get(key, host, port)`: Retrieves a value from Redis for a given key
7-
- `redis_set(key, value, host, port)`: Sets a value in Redis for a given key
6+
- `redis_get(key, host, port, password)`: Retrieves a value from Redis for a given key
7+
- `redis_set(key, value, host, port, password)`: Sets a value in Redis for a given key
8+
9+
Features:
10+
- Connection pooling for improved performance
11+
- Redis authentication support
12+
- Thread-safe operations
13+
- Detailed error handling
814

915
## Installation
1016
```sql
@@ -13,6 +19,18 @@ LOAD 'redis';
1319
```
1420

1521
## Usage Examples
22+
### Connecting with Authentication
23+
```sql
24+
-- Set a value with authentication
25+
SELECT redis_set('user:1', 'John Doe', 'localhost', '6379', 'mypassword') as result;
26+
27+
-- Get a value with authentication
28+
SELECT redis_get('user:1', 'localhost', '6379', 'mypassword') as user_name;
29+
30+
-- For non-authenticated Redis servers, pass an empty string as password
31+
SELECT redis_get('user:1', 'localhost', '6379', '') as user_name;
32+
```
33+
1634
### Setting Values in Redis
1735
```sql
1836
-- Set a single value

0 commit comments

Comments
 (0)