Spring Boot integrates Redis

Preface This article will simply integrate Redis based on springboot 2.1.8.RELEASE, which is suitable for beginners Introduction to Spring Boot integrated Redis 1. Introduce redis dependency in pom.xml <!-- Redis rely on --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-s ...

Posted by frans-jan on Wed, 18 Dec 2019 06:32:37 -0800

LNMP environment building (PHP7.2.25)

catalog preparation Install wget Install net tools Install vim Configure display line number Turn off firewall Install Nginx Installation dependency Compile and install Nginx Configure environment variables Systemd management Instal ...

Posted by cheekychop on Wed, 18 Dec 2019 00:06:50 -0800

CAS and ABA problem generation and elegant solution

I collated Java advanced materials for free, including Java, Redis, MongoDB, MySQL, Zookeeper, Spring Cloud, Dubbo high concurrency distributed and other tutorials, a total of 30G, which needs to be collected by myself.Transfer gate: https://mp.weixin.qq.com/s/JzddfH-7yNudmkjT0IRL8Q   Exclusive lock: it is a pessimistic lock. synchronized is ...

Posted by chaotica on Tue, 17 Dec 2019 00:41:52 -0800

GO installation and operation of redis

1. Install redis and start redis service windows installation tutorial: linux Installation Tutorial: 2. Use go get to download redis extension package Execute the installation command at the cmd command line: go get github.com/garyburd/redigo/redis After installation, the source package will be placed in the $GOPATHF/src/github.com d ...

Posted by jason102178 on Mon, 16 Dec 2019 06:25:12 -0800

python crawler -- Distributed crawler

Scrapy redis distributed crawler introduce By using the set of redis, the request queue and items queue can be realized, and by using the set of redis, the request can be de duplicated, so that the scale of crawler cluster can be realized Scratch redis is a scratch component based on redis • distributed Crawlers Multiple crawler insta ...

Posted by ravnen on Sun, 15 Dec 2019 03:44:35 -0800

PHP Implementation of Domain-Driven Design - Services

service You already know what entities and value objects are.As basic building blocks, they should contain the vast majority of business logic for any application.However, there are some scenarios where entity and value objects are not the best solution.Let's take a look at what Eric Evans mentioned in his book Domain Driven Design: A Way to Co ...

Posted by kishore_marti on Thu, 12 Dec 2019 17:08:15 -0800

One minute understanding of Java fair locks and unfair locks

I collated Java advanced materials for free, including Java, Redis, MongoDB, MySQL, Zookeeper, Spring Cloud, Dubbo high concurrency distributed and other tutorials, a total of 30G, which needs to be collected by myself.Portal: https://mp.weixin.qq.com/s/JzddfH-7yNudmkjT0IRL8Q   Chatting with friends, he mentioned that the constructor of Reent ...

Posted by textbox on Tue, 10 Dec 2019 23:42:53 -0800

Read write separation of redis cluster

Read write separation of redis cluster 1. Cluster deployment In this article, we will not elaborate on how to deploy the master-slave cluster. In general, slaveOf configuration is used for initialization configuration. 2. Integrating with springboot to realize read-write separation The call layer read-write separation is realized by annotatio ...

Posted by lunarul on Tue, 10 Dec 2019 22:34:33 -0800

Operation database of performance test tools Loadrunner and Redis

Copyright notice: This is the original article of the blogger. It can't be reproduced without the permission of the blogger. Welcome to my blog https://blog.csdn.net/smooth00/article/details/72843748 1. Create a new script in loadrunner (take loadrunner 11 as an example in this paper). The protoco ...

Posted by ccalzaretta on Tue, 10 Dec 2019 16:50:46 -0800

Use try with resources to close resources gracefully

We know that in the process of Java programming, if external resources (file, database connection, network connection, redis, etc.) are opened, we must manually close these external resources after they are used. Because the external resources are not managed by the JVM, we can't enjoy the garbage collection mechanism of the JVM. If we don't ma ...

Posted by bladecatcher on Tue, 10 Dec 2019 16:08:38 -0800