Spring 3.1 finally adds cache support

Jiedao jdon 2021-05-04 14:53:15
spring finally adds cache support

Cache It's usually a cache of data , In the case of database thinking , Think Cache As long as it's with the database , therefore , In the past Spring Version has no cache support , Because they think Hibernate or JPA etc. ORM Second level cache support is OK .

Is cache just a matter of persistence layer ? If there is no persistence layer in our architecture, only the model layer , Or the persistence layer is relegated to an internal implementation mechanism of the model layer .

It's like we're typing in a computer , We're dealing with... In the editor “ word ”, And these “ word ” It's actually in memory “ word ”, We press “ preservation ” The key is to put the memory “ word ” Persistent to hard disk , If the software can do this automatically , Then we don't have to do , actually , A lot now NoSQL The products are all in memory databases , It contains the internal implementation mechanism of automatic persistence .

If our architecture is based on Model Driven Development , That is to say DDD Design oriented , Instead of focusing on relational database operations , that , The model can only exist in memory , And the operation of the model should obviously be the business layer framework must do .(JdonFramework I've recognized this problem since the first version , Join in Cache Support )

therefore , In a MDD/DDD Architecture , The model layer is the core , There are entities in the model Value objects and services . These must be supported by the business layer framework , What's better now is DCI Framework to support .

Let's go back and see Spring 3.1 Of cache What support is like ? It imports the general caching mechanism , You can cache any Java class Method or library package , It can also be used with existing caching mechanisms, such as ehcache or hazelcast Support , To improve performance .

From its release notes ,Cache At present, it is only used to improve performance , It's not up to the level of support for domain models .Spring Let's wait for you to lead the public to model driven development ? Or MDD/DDD It's really advanced , Too aggressive ? Or is your pace too backward ?

Spring 3.1 M1: Cache Abstraction | SpringSource Team Blog

[ The quilt banq On 2011-02-24 10:50 A modified ]

本文为[Jiedao jdon]所创,转载请带上原文链接,感谢

  1. Help, Java how to get all the current processes of the system
  2. Has anyone ever used JMeter or written tests in httpUnit????
  3. Living in a mountain village in late spring
  4. Partridge day, spring of HKUST
  5. JavaScript异步编程4——Promise错误处理
  6. 海康摄像SDK开发笔记(一):海康威视网络摄像头SDK介绍与模块功能
  7. JavaScript asynchronous programming 4 -- promise error handling
  8. Haikang video SDK development notes (1): introduction and module functions of Hikvision webcam SDK
  9. JOP:用于FPGA的嵌入式实时系统中的Java优化处理器内核
  10. Spring Boot源码:使用MongoDB MongoTemplate公开REST在几分钟内实现CRUD功能
  11. Spring Boot应用程序事件教程 - reflectoring
  12. 带有Resilience4j断路器的Spring云网关 - rome
  13. 经验分享:Apache Kafka的缺点与陷阱 - Emil Koutanov
  14. 通过Spring Boot Webflux实现Reactor Kafka
  15. 从Java 8升级到Java 11应该注意的问题
  16. Jop: Java optimized processor core for FPGA embedded real time system
  17. Spring boot source code: use mongodb mongotemplate to open rest to realize crud function in a few minutes
  18. Spring boot application event tutorial - reflecting
  19. Spring cloud gateway with resilience4j circuit breaker - ROM
  20. Experience sharing: shortcomings and pitfalls of Apache Kafka - Emil koutanov
  21. Realization of reactor Kafka through spring boot Webflux
  22. RPC框架设计----Socket与I/0模型
  23. Problems in upgrading from Java 8 to Java 11
  24. RPC framework design -- socket and I / 0 model
  25. RPC框架设计----I/0模型
  26. RPC framework design: I / 0 model
  27. RPC框架设计----NIO编程缓冲区Buffer
  28. RPC框架设计----NIO编程缓冲区Buffer
  29. RPC framework design -- NiO programming buffer
  30. RPC framework design -- NiO programming buffer
  31. Java多线程基础
  32. Java multithreading Foundation
  33. 码农飞升记-00-Java发展历程
  34. Development history of coder-00-java
  35. 码农飞升记-00-Java发展历程
  36. Development history of coder-00-java
  37. Spring and Autumn Moon
  38. Node.js与Spring Boot比较? - Ryan Gleason
  39. Spring WebFlux的明显陷阱 - ŁukaszKyć
  40. Spring创始人Rod大叔对YAML的真实想法
  41. Compare node.js with spring boot- Ryan Gleason
  42. Obvious pitfalls of spring Webflux- Ł ukaszKy ć
  43. Spring founder uncle rod's real thoughts on yaml
  44. 码农飞升记-02-OracleJDK是什么?OracleJDK的版本怎么选择?
  45. What is manong feisheng-02-oracle JDK? How to choose the version of Oracle JDK?
  46. Spring tide surging Xinanjiang
  47. Linux内核软中断
  48. Linux kernel soft interrupt
  49. Linux内核软中断
  50. Linux kernel soft interrupt
  51. Java multithreading Foundation
  52. The construction of Maven private library nexus
  53. I / O stream in Java
  54. JDK 16:Java 16的新功能 - InfoWorld
  55. 在Java中本地进行线程间数据传输的三种方式和源码展示
  56. jdon导致cpu 99%最后tomcat死掉---banq给予回复
  57. 用领域事件模拟AOP注入
  58. JDK 16: new function of Java 16 - InfoWorld
  59. Cartoon: from JVM lock to redis distributed lock
  60. Spring 3.1 终于加入了Cache支持