![]() |
Qore RedisDataProvider Module Reference 1.0
|
The RedisDataProvider module provides a dataproviderintro "data provider" API for Redis servers. It provides connection management and a comprehensive API for all Redis data types and operations.
This module supports:
Redis connections can be created using the redis:// or rediss:// (TLS) URL schemes:
redis://[username:password\@]host[:port][/db] rediss://[username:password\@]host[:port][/db]
redis://localhost - connect to localhost on default port 6379redis://localhost:6380 - connect to localhost on port 6380redis://secret@localhost/1 - authenticate with password, select db 1redis://user:secret@localhost/0 - ACL auth with username (Redis 6.0+)rediss://localhost - TLS connection to localhostThe name of the Redis data provider factory is redis.
These examples are with qdp, the command-line interface to the Data Provider API.
qdp 'redis{url=redis://localhost}/strings/set' key=mykey,value=myvalue
qdp 'redis{url=redis://localhost}/strings/get' key=mykey
qdp 'redis{url=redis://localhost}/hashes/set' key=myhash,field=name,value=John
qdp 'redis{url=redis://localhost}/lists/push' key=mylist,values='{item1,item2}'
The following classes are provided by this module: