In the previous two recipes, we have shown how to connect to Redis with Java and Python. Now it's time to talk about web applications. When it comes to web development in the Java world, Spring from Pivotal is the most famous framework and takes advantage of the MVC pattern for developing robust Java web applications easily and rapidly. For Redis, with the Spring Data Redis library, we can manipulate Redis in Spring out-of-the-box.
In this recipe, we'll create a demo project that implements create/read/update/delete (CRUD) operations of a user model to show you how to connect to Redis with the Spring Data Redis library.
You need to finish the installation of the Redis Server as we described in the Downloading and installing Redis recipe in Chapter 1, Getting Started with Redis. You need to use the FLUSHALL
command to flush all the data in your Redis instance before moving on to the next section.
An IDE is recommended for this recipe....