I have a Spring Boot application and I am adding a Redis component to it. I'm fairly new to Spring Boot and very new to Redis. What I need to do is get a JSON String from a Redis server and then the application will do some manipulations/handle that String. Basically I just need the Read of a CRUD setup. A different application manages the contents of the Key/Value, this application just needs to make sure it is using the most updated Value from time to time before it does stuff.
All of the tutorials I'm finding suggest to make a Redis Configuration and Repository. Something like this:
But I don't have a DataModel I'm directly trying to turn my find call into. I just want a String value associated with a particular Key. So, I'm thinking that I need to change in the Configuration and Repository to because I'm using a String to get a String?
I'm also not really using hash functionality like in the examples where there are different ids as part of the Key. I just need a way to get/find a Key's value, something more like a JedisPool? Along the pseudo-code of:
But I'm not sure how to set that up within what I'm already working with. Or maybe my overall approach is way off? Appreciate any help! Thanks.
posted 2 months ago
I figured out my need:
to get the String value I was looking for.
Whatever. Here's a tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop