Giter Site home page Giter Site logo

redis-examples's Introduction

Redis Examples

The idea of this repo is to collect several examples of redis development, by using drivers like Jedis and frameworks like Spring and Spring Data Redis.

##redis-demo

This project contains several basic examples, nothing too complicated yet. Every example use the basic set/get from Redis. The dependencies are based on Spring Boot starters poms, so you don't need to add any other dependency. This project is based on Maven:

It is recommendable to use a IDE (example STS for easy execution of the individual files) .

  • RedisSpringBootApplication.java

This app shows the simple way to use the spring-data-redis with Spriong Boot. If you don't have any IDE then you can run it with:

$ mvn spring-boot:run

NOTES: if you want to use a different host:port you can change it in the src/main/resources/application.properties file

  • RedisSpringApplication.java

This app shows a regular usage of Spring with XML configuration file. If you don't have any IDE then you can run it with:

$ mvn exec:java -Dexec.mainClass="io.redis.demo.RedisSpringApplication"
  • RedisSpringConfigApplication.java

This app shows the Spring with Java Config class. If you don't have any IDE then you can run it with:

$ mvn exec:java -Dexec.mainClass="io.redis.demo.RedisSpringConfigApplication"
  • RedisJedisApplication.java

This app shows the usage of the Jedis driver for Redis. If you don't have any IDE then you can run it with:

$ mvn exec:java -Dexec.mainClass="io.redis.demo.RedisJedisApplication"

NOTES:

  • All the examples have a Sentinel/Cluster code hasn't been tested yet.
  • Take a look at the SimpleRedisService class that is reused by most of the classes.

##TO-DO List

  • Basic Examples
  • Add Messaging Examples
  • Add Cluster/Sentinel Examples
  • Add Spring Integration Examples
  • Add Spring XD Examples
  • Add .NET Examples

redis-examples's People

Contributors

felipeg48 avatar

Stargazers

李米 avatar willie avatar

Watchers

 avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.