Redis deep adventure application

Article catalog install Infrastructure string set Quotation marks Options lock obtain release exists expire System clock Various key operations Expiration algorithm colony list quicklist rpush rpop lpop lpush lindex lrange ltrim llen blpop brpop hash set zset zrange zrevrange zcard Curren ...

Added by ralba1998 on Thu, 18 Jun 2020 06:11:24 +0300

How to Design High Performance Distributed Locks

What is a distributed lock? In a JVM, where multiple threads are concurrent, we can use synchronous or Lock locks to ensure that only one thread can modify shared variables or execute code blocks at a time.However, our services are deployed on a distributed cluster basis, and for some shared resources, the use of Java locks in a distributed en ...

Added by gersh on Wed, 17 Jun 2020 19:51:19 +0300

Spring initializes Ioc I

Spring IOC source code parsing based on annotations, version 5.1.x Initializing bean s through the Spring context Annotation class, annotationconfigpplicationcontext can be used to load Spring context based on java configuration class (various annotations), which is better than using application.xm ...

Added by nosmasu on Wed, 17 Jun 2020 07:06:03 +0300

New feature of JDK8: date time related API

New feature of JDK8: date time related API Problems with old version date time API: 1. Poor design: in java.tilogjava Sq| has date classes in its packages, java.util.Date Contains both date and time, and java.sql.Date Only. Contains the date. In addition, the classes used for formatting and pars ...

Added by Iceman18 on Wed, 17 Jun 2020 07:06:02 +0300

Three characteristics of java object-oriented: encapsulation, inheritance and polymorphism

Three characteristics of object-oriented encapsulation 1. The concept of encapsulation is to make the program * * highly cohesive and low coupling** High cohesion: it means that the internal data operation details of the class are completed by itself, and external interference is not allowed Low co ...

Added by wildmanmatt on Tue, 16 Jun 2020 11:37:44 +0300

JAVA-IO streaming advanced NIO

NIO Java NIO (New IO) is a new IO API introduced from Java version 1.4. NIO has the same function and purpose as the original IO, but it is used in a totally different way. NIO supports buffer oriented, channel based IO operations. NIO will read and write files in a more efficient way. Main differences ...

Added by Bill H on Tue, 16 Jun 2020 10:48:24 +0300

Spring series. AOP use

AOP introduction Using the object-oriented method can organize the code well, and also can realize code reuse in the way of inheritance. However, there will always be some duplicate code in the project, and it is not convenient to use inheritance methods to reuse and manage them, such as general log printing, transaction processing and security ...

Added by dessolator on Tue, 16 Jun 2020 05:58:28 +0300

Method of Using Redis to Count Web UV s

Article Directory Preface thinking HyperLogLog Use Redis command action Working with Java code The Principle and Feature of HyperLog Implementation Implement HyperLog using Java Summary Preface Web site UV refers to the amount of Unique Visitor visited by independent users of a Web site, that ...

Added by BlueSkyIS on Tue, 16 Jun 2020 03:56:18 +0300

Summary of method parameter modification in java

catalog Overall code String and basic type Object, container class, array summary Overall code package test.t05new; import java.util.ArrayList; import java.util.Arrays; public class Test9 { public static void main(String[] args){ //test String String str = "value"; ...

Added by eddjc on Mon, 15 Jun 2020 10:56:52 +0300

Using maven to create spring project registration bean, running successfully

1: Project creation and configuration 1. 2 if your maven warehouse is not under the default.. / user / directory, modify the settings settings, and then pom.xml Add spring dependency in. Note that you need to re-enter it even if it is not reported as red after adding       3. Create a ...

Added by Hellusius on Mon, 15 Jun 2020 08:56:53 +0300