Skip to content

Release 0.11.0

Choose a tag to compare

@gavrie gavrie released this 13 Oct 08:37
· 355 commits to master since this release

Breaking Changes

  • The new safe ThreadSafeContext API (see below) replaces the old raw Context::get_thread_safe_context() API
  • RedisError no longer implements From<&str> (due #102, this is no longer possible). Instead of using Err("...".into()), use Err(RedisError::String()) or Err(RedisError::Str()) explicitly. While this requires changes, it removes magic, leading to clearer code.

User-facing Changes

  • New idiomatic ThreadSafeContext and BlockedClient APIs provide a safe Rust wrapper around the related Redis module APIs
  • Add API for context-less logging (#106)
  • Add infrastructure for exposing hash-multi-get functionality (via hash_mget_key; a more idiomatic API around this is in development) (#105)
  • Add method for converting RedisString to &str (#98)
  • Fix wrong usage of RedisModule_HashGet and RedisModule_HashSet (#99)
  • Add support for running module unload code (#107)

Internal Changes

  • Macro namespace-related cleanups
  • Publically export BlockedClient and DetachedFromClient
  • Implement a conversion to RedisError from any type implementing the Error trait (#102)