I. What is mock? The role of mock
mock is a test tool that achieves its desired results by simulating uncontrollable or complex request results (such as third party requests) and controlling request parameters. Popularly speaking, it is the &quo ...
Posted on Mon, 19 Aug 2019 01:52:30 -0700 by northk
Recently, a shopping mall project was built with the django restframe framework. There is a business logic about shopping carts. The information about shopping carts stored in cookie s and redis is recorded here.
Add delete change check four logic, f ...
Posted on Thu, 15 Aug 2019 00:01:05 -0700 by hhheng
It is common to use redis as a cache, but there may be a series of problems after using redis, especially when the amount of data is large. Some classical problems are as follows:
(1) Data consistency between caches and databases
Distributed environments (not to mention stand-alone) are very prone ...
Posted on Wed, 14 Aug 2019 02:24:21 -0700 by Rodis
Understanding: Redis Foundation Types
Redis data type
zset (ordered set)
Posted on Fri, 09 Aug 2019 02:36:37 -0700 by gullit
The first two articles explained the concepts of IOC and DI and why we need them. This article will continue with the definition of Spring IOC container, xml configuration file, which will clarify two questions:
1. The role of Spring XML configuration files. (Inheritance with IOC thought)
2. If the d ...
Posted on Thu, 08 Aug 2019 19:19:11 -0700 by sader
The characteristic of java language is multithreading, of course, there will be corresponding challenges under the advantages. In multithreading environment, thread security becomes a problem that developers must avoid. When a thread shares a variable, according to the memory model, each thread has its own local memory, and t ...
Posted on Mon, 05 Aug 2019 19:47:44 -0700 by ph3n0m
2.7 Revealing --- Asynchronous transformation
Target: Analyze the rationale for asynchronization in 2.7's new features from a source code perspective.
There are many types of protocols available in dubbo, and a series of protocols can be found in the following articles:
dubbo Source Resolution (24) Remote Call - dubbo Protocol
dubbo So ...
Posted on Fri, 02 Aug 2019 19:12:57 -0700 by berrberr
Configuration file changes
There are many methods for synchronous migration of Redis cluster, such as redis-port,redis-migrate-tool and other tools. This paper mainly talks about the migration of CentOS from cluster to single instance through redis ...
Posted on Thu, 01 Aug 2019 23:13:15 -0700 by raghavan20
Docker Packaging Deployment Steps1. mvn clean package2. Transfer the jar package under the pre-alpine folder under target and the Dockerfile to a path on the server3. cd to path4.Build mirror docker build-t pre:1.0.5. Run the command docker run --name pre-P 8081:8081-d pre:1.0
Real product-level dockerfile
#Basic MirrorFROM java:openjdk-8-jre ...
Posted on Thu, 01 Aug 2019 16:41:11 -0700 by apenster
127.0.0.1:6379> set school tarena Assign variable name variable value
127.0.0.1:6379> keys ** View variables
127.0.0.1:6379> keys a?? View the specified variable
127.0.0.1:6379> get school View variable values
127.0.0.1:6379> select 0~15 Default 15 library switches
127.0.0.1:6379> exis ...
Posted on Tue, 30 Jul 2019 11:16:30 -0700 by facets