Git Product home page Git Product logo

redis-training's Introduction

Redis Training

Deck

https://www.slideshare.net/diego.pacheco/redis-218396098

Code

Lettuce

https://github.com/diegopacheco/redis-training/tree/master/src/java-lettuce-redis-fun

./gradlew clean build
./gradlew run
Spring Data

https://github.com/diegopacheco/redis-training/tree/master/src/java-spring-data-redis-fun

./gradlew clean build
./gradlew run

Running Redis

Running the Server

docker run redis
1:C 10 Jan 2020 17:36:01.963 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
1:C 10 Jan 2020 17:36:01.963 # Redis version=5.0.5, bits=64, commit=00000000, modified=0, pid=1, just started
1:C 10 Jan 2020 17:36:01.963 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
1:M 10 Jan 2020 17:36:01.966 * Running mode=standalone, port=6379.
1:M 10 Jan 2020 17:36:01.966 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
1:M 10 Jan 2020 17:36:01.966 # Server initialized
1:M 10 Jan 2020 17:36:01.966 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
1:M 10 Jan 2020 17:36:01.966 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
1:M 10 Jan 2020 17:36:01.966 * Ready to accept connections

Running redis-cli

docker ps
docker exec -it $CONTAINER_ID(i.e b350a432b5af) redis-cli
127.0.0.1:6379> keys *
(empty list or set)
127.0.0.1:6379> 

redis-training's People

Contributors

diegopacheco avatar

Watchers

James Cloos 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.