Redis
Redis redis-server redis-server /xxx/redis.conf maxmemory maxmemory 500000000 maxmemory-policy allkeys-lru Configuring the maxmemory setting in the Redis configuration is crucial: if there is no...
Redis redis-server redis-server /xxx/redis.conf maxmemory maxmemory 500000000 maxmemory-policy allkeys-lru Configuring the maxmemory setting in the Redis configuration is crucial: if there is no...
AOP (Aspect-Oriented Programming) is often referred to as a tool for implementing crosscutting concerns. The term crosscutting concerns refers to logic in an application that cannot be decomposed ...
The decorator pattern attaches additional responsibilities to an object dynamically. Decorators provide a flexible alternative to subclassing for extending functionality. Once you know the techn...
The observer pattern defines a one-to-many dependency between objects so that when one object changes state, all of its dependents are notified and updated automatically. 如果你理解现实生活中的报纸订阅和退订服务,那么...
The strategy pattern defines a family of algorithms, encapsulate each one, and makes them interchangeable. The strategy pattern lets the algorithm vary independently from clients that use it. 一个有q...
Identify the aspects of your application that vary and separate them from what stays the same Take the parts that vary and encapsulate them, so that later you can alter or extend the parts that var...
Spring has many modules, but you need only a subset of these modules depending on your application’s needs. Each module has its compiled binary code in a JAR file along with corresponding Javadoc a...
Inversion of Control IoC is a technique that externalizes the creation and management of component dependencies. The core of the Spring Framework is based on the principle of IoC. At its core, IoC...
In the early days of web APIs, people spent a lot of time and effort figuring out how to implement the features of previous-generation distributed technologies like CORBA (Common Object Request Bro...
Imperative Programming vs Reactive Programming Imperative programming is simple: you write code as a list of instructions to be followed, one at a time, in the order that they’re encountered. A tas...