Have some code written with redisson in mine spring-boot application, which works with my local redis server version 5+. But once apllication pushed to PCF and trying to use redisson lock - I do get next error:
org.redisson.client.RedisException: ERR unknown command `EVAL`, with args beginning with: `if (redis.call('exists', KEYS[1]) == 0) then redis.call('hset', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); r`, . channel: [id: 0x63facc9b, L:/10.248.253.128:35276 - R:xxxxx:xxxx] command: (EVAL), params: [if (redis.call('exists', KEYS[1]) == 0) then redis.call('hset', KEYS[1], ARGV[2], 1);
Possible reasons that I was able to find were:
- Low redis server version, which is not mine case.
- Some Redis Cloud providers might not support EVAL command for redis, which is mandatory for redisson. The most relevant topic I was able to find is this one, but still I am not familiar enough with this technology stack.
So generally I have question, If someone has experience using redisson with PCF Redis On-Demand Service, and maybe can help me understand the issue.
Redisson version is 3.12.0
UPDATE1; Worked on other PCF instance with Redis On-Demand service, so issue is definitely in Redis On-Demand configuration. Just to confirm you can use Redisson on PCF.