Skip to content

Latest commit

 

History

History
82 lines (50 loc) · 2.73 KB

README.md

File metadata and controls

82 lines (50 loc) · 2.73 KB

Key-value

Redis Project

Redis:In computing, Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker.

Check the code

This part has two configuration files and seven classes

This class creates and persist into Diana-redis one user with two telephone numbers whith username, name and then queries it:

	private static final User USER = User.builder()
         				.withPhones(Arrays.asList("234", "432"))
            				.withUsername("username")
            				.withName("Name")
            				.build();

This class creates and persist into Diana-redis one user with two telephone numbers whith username, name and then queries it:

	private static final User USER = User.builder()
         				.withPhones(Arrays.asList("234", "432"))
            				.withUsername("username")
            				.withName("Name")
            				.build();

Start the workshop

  1. Run the Redis Docker instance

    docker run --name redis-instance -p 6379:6379 -d redis
    
  2. Compile the project via Maven

    mvn compile
    
  3. Run the project via Maven

    mvn exec:java -Dexec.mainClass="org.jnosql.demo.key.App"
    
    mvn exec:java -Dexec.mainClass="org.jnosql.demo.key.App2"
    

Time to practice

Now, It is time you explore the code: add new persons, more relationships, and create new queries. Also you can try to an create your own entities that can be used to respond some questions, next some ideas:

  • Create a database to handle JUG information using Redis
  • Create, Retrieve and Update JUG information
  • Where the JUG name is the unique value.