The redis values is populated using Java spring package: RedisTemplate. Now i need to consume these values in express server. For which i am using npm package: redis.
The regular redis key values can be retrieved.
Ex:
const redis = require("redis");
const client = redis.createClient();
Able to get value with client.get
I am not able to get the stored hash values.
They are stored using spring:
redisTemplate.opsForHash().putIfAbsent("key", "hashkey", "hashvalue")
Here, the key also is stored by encrypting.
Since the key is encrypted, I am unable to retrieve this hash key value from javascript code.
tried using: client.hget, client.hgetall.
Can you help me out in retrieving the hash key values that are stored using java spring package?