Distribute-Cache:基于redis的分布式缓存实现

时间:2021-04-30 12:29:26
【文件属性】:
文件名称:Distribute-Cache:基于redis的分布式缓存实现
文件大小:9KB
文件格式:ZIP
更新时间:2021-04-30 12:29:26
java distribution cache Java 基于redis的分布式缓存实现 Cache cache = CacheBuilder .newBuilder("redisCacheKeyPrefix") //redis中缓存值的key前缀 .expireTime(100) //过期时间 单位(秒) 默认过期时间为一年 .build(new CacheLoader() { @Override public String load(String s) { //do so
【文件预览】:
Distribute-Cache-master
----src()
--------main()
--------test()
----pom.xml(2KB)
----README.md(848B)

网友评论