Skip to content

Commit 75a2668

Browse files
authored
Merge pull request #1 from quackscience/extended
Extended Features
2 parents 412892a + e3b4434 commit 75a2668

File tree

2 files changed

+362
-42
lines changed

2 files changed

+362
-42
lines changed

docs/README.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,14 @@ This extension provides Redis client functionality for DuckDB, allowing you to i
77
88
## Features
99
Currently supported Redis operations:
10-
- `redis_get(key, host, port)`: Retrieves a value from Redis for a given key
11-
- `redis_set(key, value, host, port)`: Sets a value in Redis for a given key
10+
- `redis_get(key, host, port, password)`: Retrieves a value from Redis for a given key
11+
- `redis_set(key, value, host, port, password)`: Sets a value in Redis for a given key
12+
13+
Features:
14+
- Connection pooling for improved performance
15+
- Redis authentication support
16+
- Thread-safe operations
17+
- Detailed error handling
1218

1319
## Installation
1420
```sql
@@ -17,6 +23,18 @@ LOAD redis;
1723
```
1824

1925
## Usage Examples
26+
### Connecting with Authentication
27+
```sql
28+
-- Set a value with authentication
29+
SELECT redis_set('user:1', 'John Doe', 'localhost', '6379', 'mypassword') as result;
30+
31+
-- Get a value with authentication
32+
SELECT redis_get('user:1', 'localhost', '6379', 'mypassword') as user_name;
33+
34+
-- For non-authenticated Redis servers, pass an empty string as password
35+
SELECT redis_get('user:1', 'localhost', '6379', '') as user_name;
36+
```
37+
2038
### Setting Values in Redis
2139
```sql
2240
-- Set a single value

0 commit comments

Comments
 (0)