0.13.0
版本发布时间: 2019-10-15 03:30:59
redis-rs/redis-rs最新发布版本:redis-0.27.4(2024-10-10 02:59:20)
Fixes and improvements
-
Breaking change: rename
parse_async
toparse_redis_value_async
for consistency (ce59cecb). - Run clippy over the entire codebase (#238)
-
Breaking change: Make
Script#invoke_async
generic overaio::ConnectionLike
(#242)
BREAKING CHANGES
Rename parse_async
to parse_redis_value_async
for consistency (ce59cecb).
If you used redis::parse_async
before, you now need to change this to redis::parse_redis_value_async
or import the method under the new name: use redis::parse_redis_value_async
.
Make Script#invoke_async
generic over aio::ConnectionLike
(#242)
Script#invoke_async
was changed to be generic over aio::ConnectionLike
in order to support wrapping a SharedConnection
in user code.
This required adding a new generic parameter to the method, causing an error when the return type is defined using the turbofish syntax.
Old:
redis::Script::new("return ...")
.key("key1")
.arg("an argument")
.invoke_async::<String>()
New:
redis::Script::new("return ...")
.key("key1")
.arg("an argument")
.invoke_async::<_, String>()