Skip to content

Latest commit

 

History

History

Examples

  • Basic - Basic client usage.
  • Axum - Use a client pool with Axum.
  • Actix - Use a client pool with Actix.
  • TLS - Setting up a client that uses TLS.
  • Publish-Subscribe - Use multiple clients together with the pubsub interface in a way that survives network interruptions.
  • Blocking - Use multiple clients with the blocking list interface.
  • Transactions - Use the MULTI/EXEC interface on a client.
  • Pipeline - Use the manual pipeline interface.
  • Streams - Use XADD and XREAD to communicate between tasks.
  • Lua - Use the Lua scripting interface on a client.
  • Scan - Use the SCAN interface to scan and read keys.
  • Pool - Use a round-robin client pool.
  • Dynamic Pool - Use a client pool that scales dynamically.
  • Monitor - Process a MONITOR stream.
  • Sentinel - Connect using a sentinel deployment.
  • Serde JSON - Use the serde-json feature to convert between Redis types and JSON.
  • Redis JSON - Use the i-redis-json feature with serde-json types.
  • Custom - Send custom commands or operate on RESP frames.
  • DNS - Customize the DNS resolution logic.
  • Client Tracking - Implement client side caching.
  • Events - Respond to connection events with the EventsInterface.
  • Keyspace Notifications - Use the keyspace notifications interface.
  • Misc - Miscellaneous or advanced features.
  • Replicas - Interact with cluster replica nodes via a RedisPool.
  • Glommio - Use the Glommio runtime. See the source docs for more information.

Or see the tests for more examples.