Redis

Installation Docker Img 1 $ docker pull redis 2.1 $ docker run –name some-redis -d redis This image includes EXPOSE 6379 (the redis port), so standard container linking will make it automatically available to the linked containers (as the following...

Design Patterns - Visitor

Design Patterns Category Design Patterns Index 23. Visitor Intent: Represent an operation to be performed on the elements of an objects tructure. Visitor lets you define a new operation without changing the classes of the elements on which it operates....

Design Patterns - Template Method

Design Patterns Category Design Patterns Index 22. Template Method Intent: Define the skeleton of an algorithm in an operation, deferring some steps to subclasses. Template Method lets subclasses redefine certain steps of an algorithm without changing the algorithm’s structure. Applicability:...

Design Patterns - Strategy

Design Patterns Category Design Patterns Index 21. Strategy Intent: Define a family of algorithms, encapsulate each one, and make them interchangeable. Strategy lets the algorithm vary independently from clients that use it. Also Known As: Policy Applicability: many related classes...

Design Patterns - State

Design Patterns Category Design Patterns Index 20. State Intent: Allow an object to alter its behavior when its internal state changes.The object will appear to change its class. Also Known As: Objects for States Applicability: An object’s behavior depends on...