JFinal + Redis 实现action的数据缓存

时间:2021-04-19 10:59:35
【文件属性】:
文件名称:JFinal + Redis 实现action的数据缓存
文件大小:6KB
文件格式:RAR
更新时间:2021-04-19 10:59:35
jfinal redis demo 缓存数据 JFinal + Redis 实现action的数据缓存 在Controller的public void 方法上写上 @Before(RedisCacheInterceptor.class) 即可实现redis缓存 需要在Appconfig中configPlugin代码进行插件加入 RedisPlugin appRedis = new RedisPlugin("demo_app", "127.0.0.1", 6378); me.add(appRedis);
【文件预览】:
redis+jfinal
----utils()
--------HttpUtils.java(11KB)
--------RedisAppUtils.java(1KB)
----Read.me(94B)
----bean()
--------RedisCacheAttrBean.java(2KB)
----interceptor()
--------RedisCacheInterceptor.java(3KB)

网友评论