You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the I'm tesing the code with IllegalStateException (detail in the attachment).
Finally, I found there is also a method: RedisScript.of(String script, Class<T> classType)
using the RedisScript.of(script, Boolean.class) for the testing is all correct.
But this method DO NOT return a generic RedisScript .
This is the problem, because the IDE complaint...
I think the api should improve. and the RedisScript.of(String script) method without classType parameter can cause problem difficult resolve.
Also this section of the reference document is obsolute.
cuillgln opened DATAREDIS-1030 and commented
Hi, when I use redis scripting in spring boot2. with the code following:
the I'm tesing the code with
IllegalStateException
(detail in the attachment).Finally, I found there is also a method:
RedisScript.of(String script, Class<T> classType)
using the
RedisScript.of(script, Boolean.class)
for the testing is all correct.But this method DO NOT return a generic
RedisScript
.This is the problem, because the IDE complaint...
I think the api should improve. and the
RedisScript.of(String script)
method without classType parameter can cause problem difficult resolve.Also this section of the reference document is obsolute.
the of method first parameter is String type, not the ScriptSource type. It would be update.
Affects: 2.1.10 (Lovelace SR10)
Attachments:
Referenced from: pull request #473
The text was updated successfully, but these errors were encountered: