- Notifications
You must be signed in to change notification settings - Fork6
Redislabs-Solution-Architects/redis-connect
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
A collection of samples using different libraries to connect to redis and redis enterprise
For each library have the following connection types
- Simple connection to single endpoint
- Sentinel
- Cluster
In each example
- Connect to Redis
- simple get/set command and show output
- Close connection/connection pool
- In case of sentinel or cluster API , show where more sentinels or nodes can be added
Samples are tested with
Library | OSS Redis | Redis Enterprise | Notes |
---|---|---|---|
Java Jedis | Y | Y | No TLS sentinel support |
Java Lettuce | Y | Y | |
.Net StackExchange | Y | Y | Sentinel does not work with 2.1.58 for RS use 2.1.30 |
Python redispy | Y | Y | |
Node.js ioredis | Y | Y | |
Node.js noderedis | Y | Y | |
golang go-redis | Y | Y | Sentinel with TLS does not work |
golang redigo | Y | Y | |
C++ redisplusplus | Y | Y | |
ruby ruby-rb | Y | Y |
- Clone , change , test and commit
- If you find any improvement e.g better language idioms, better way to do things , please change and commit
- If you have tested with a new version of the library, just test, update the readme and commit
- When writing README.md assume user can follow instructions but is not familiar with the language or eco system.Template is available
- Use minimal dependencies.
- For consistency follow the pattern of other samples
- Prefer simplicity over advanced language features
- Single file should execute, have minimal code and, you should be able to share the single file as an example.
- Prefer copy/paste over reuse of code across sample files
- Use connection pooling where the client library supports it. As this is the most common scenario for a production examples
- TLS samples are only tested with RS
- For TLS do the sample for 2-way SSL. If verification hook e.g
verifyhostname
is available provide empty implementation(discuss)
- Verify certificates or review to provide protection forMITM
- Example blocking operation if supported
- Pub/Sub
- Add Spring boot sample
About
A collection of redis client samples
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors4
Uh oh!
There was an error while loading.Please reload this page.