Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A collection of redis client samples

NotificationsYou must be signed in to change notification settings

Redislabs-Solution-Architects/redis-connect

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

Coverage

Samples are tested with

LibraryOSS RedisRedis EnterpriseNotes
Java JedisYYNo TLS sentinel support
Java LettuceYY
.Net StackExchangeYYSentinel does not work with 2.1.58 for RS use 2.1.30
Python redispyYY
Node.js ioredisYY
Node.js noderedisYY
golang go-redisYYSentinel with TLS does not work
golang redigoYY
C++ redisplusplusYY
ruby ruby-rbYY

Contribution

  • 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 Adding new Library

  • 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.gverifyhostname is available provide empty implementation(discuss)

TODO

  • 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

Stars

Watchers

Forks

Packages

No packages published

Contributors4

  •  
  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp