Cache
Decorator
Mybatis decorative use cache mode, decorated with the decoration classes implement the same interfaces, and is held decorative instance.
Such as 具体装饰器2—持有—>具体装饰器1—持有—>基本实现类
to achieve a step by step Enhanced
IO bag Jdk uses a lot of decorative mode, such as BufferedInputstream etc.
cache core implementation class
PerpetualCache basic implementation class, using the underlying HashMap cache; the rest are implemented decorative class
- BlockingCache
- FifoCache, LRUCache
- SoftCache, WeakCache
- ScheduledCache
- LoggingCache
- SynchronizedCache
- CacheSerializedCache
Most of its implementation is intended to see to know the name, but to explain