Comments (4)
不建议在代码中打太多的日志,日志多了,返而不容易查找问题,这块自己写单元测试就很容易解决问题。
from autoloadcache.
个人感觉应该加上日志,哪怕日志的级别低一些(如trace)。
实际使用中,用户会根据实际情况屏蔽掉一些包的日志。但如果没有日志,则不方便定位于问题。
from autoloadcache.
表达式解析如果要调试,还要打印它的上下文,不然打出来的日志意义也不大,这样一来打印的东西就变多了。从我个人经验来说,表达式都会写得非常简单明了,可以不需要调式就能看明白。
from autoloadcache.
不用考虑上下文吧,那样就扩大化了。主要是基本信息也没有。我认为打印key有几方面用处:
1、调优缓存key;
2、发现bug,需要手工维护缓存时,能够直接看到key值,而不需自己推断;
表达式可能很长,因为需要做空值判断的,否则可能会有空指针问题。
没事,如果楼主觉得影响了性能不合适可以不加。反正是开源的,可以自行调整的
from autoloadcache.
Related Issues (20)
- magic模式下能否支持ExCache
- 疑似不支持redisCluster HOT 1
- CacheOpType.WRITE 不支持 magic HOT 1
- @Cache condition不支持返回结果是否为空,是否为true等判断吗? HOT 4
- 为什么分了这么多包,有什么好处吗? HOT 1
- 有没有这么种方案的解决配置. 感觉能省redis的内存. 多套缓存只保留根据id的,其他关联查询,都缓存关联关系 HOT 4
- readme很多链接都是404
- 请问个问题呀,这个项目和jetcache项目谁先有的呀 HOT 4
- 这个注解在启动时强制依赖了redis,不能在不配置redis地址的情况下使用内存缓存模式。 HOT 1
- 学习项目中遇到的一点问题 HOT 1
- 自动加载和异步刷新,感觉很相似,具体的区别和适用场景是什么呢 HOT 1
- 不支持jedis3.2,升级一个版本呗 HOT 3
- 怎么缓存(删除)带查询参数的列表数据 HOT 1
- MagicHandler.magic的一个NPE HOT 5
- AutoLoadCache整合Redisson后,分布式锁空指针问题
- 能否通过API的方式,而不是通过注解创建一个缓存 HOT 1
- 直接引入starter,无法下载依赖
- Cache注解condition属性无法使用返回值 HOT 1
- magic模式下,获取缓存key存在NPE HOT 1
- 7.0.8版 cache注解缓存是否有问题 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from autoloadcache.