Java两级缓存框架 J2Cache

码农软件 · 软件分类 · 缓存系统 · 2019-08-30 10:59:36

软件介绍

J2Cache 是 OSChina 目前正在使用的两级缓存框架。第一级缓存使用 Ehcache,第二级缓存使用 Redis 。由于大量的缓存读取会导致 L2 的网络成为整个系统的瓶颈,因此 L1 的目标是降低对 L2 的读取次数。该缓存框架主要用于集群环境中。单机也可使用,用于避免应用重启导致的 Ehcache 缓存数据丢失。

J2Cache 的 Python 实现版本 —— Py3Cache

J2Cache 使用 JGroups 进行组播通讯。

J2Cache 介绍 PPT:http://www.oschina.net/doc/652

J2Cache JavaDoc: https://apidoc.gitee.com/ld/J2Cache/

视频介绍:http://v.youku.com/v_show/id_XNzAzMTY5MjUy.html

Maven:


  net.oschina.j2cache
  j2cache-core
  版本号

示例代码:

CacheChannel cache = J2Cache.getChannel();
cache.set("cache1","key1","OSChina.net");
cache.get("cache1","key1");

测试方法:

  1. 安装 Redis

  2. 修改 core/Java/j2cache.properties  配置使用已安装的 Redis 服务器

  3. 执行 build.sh 进行项目编译

  4. 运行多个 runtest.sh

  5. 直接在 runtest 输入多个命令进行测试

本文地址:https://codercto.com/soft/d/13488.html

The Elements of Statistical Learning

The Elements of Statistical Learning

Trevor Hastie、Robert Tibshirani、Jerome Friedman / Springer / 2009-10-1 / GBP 62.99

During the past decade there has been an explosion in computation and information technology. With it have come vast amounts of data in a variety of fields such as medicine, biology, finance, and mark......一起来看看 《The Elements of Statistical Learning》 这本书的介绍吧!

MD5 加密
MD5 加密

MD5 加密工具

SHA 加密
SHA 加密

SHA 加密工具