SHOP.COM Cache System

码农软件 · 软件分类 · 缓存系统 · 2019-08-30 22:42:57

软件介绍

这是SHOP.COM 网站所使用的对象缓存系统,主要特性包括如下几个方面:

* 支持进程内和CS 模式的缓存结构
 * 可以进行水平扩展
 * 缓存对象可被存到磁盘中
 * 支持关联主键
 * 非事务
 * 支持任意长度的主键和键值
 * 根据 TTL 进行自动垃圾回收
 * 可以运行于容器中或者是独立平台运行

示例代码:

List<SCClientManager> clientSet = new ArrayList<SCClientManager>();
SCClientFactory       clientFactory = ShopComCacheFactory.getClientFactory();

SCClientContext       context = clientFactory.newContext();
context
.address(new InetSocketAddress(/*address 1*/, /*port number 1*/));
SCClientManager       manager = clientFactory.newClientManager(context);
clientSet
.add(manager);

// add additional managers for each cache server

myCache
= new SCCache(new SCMultiManager(clientSet));

// see if your object is in the cache
MyObject    obj = (MyObject)myCache.get(new SCDataBlock(myKey));

// if it's not, allocate it and add it to the cache
if ( obj == null )
{
    obj
= new MyObject();
    myCache
.put(new SCDataBlock(myKey, obj));
}

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

Python for Everyone

Python for Everyone

Cay S. Horstmann、Rance D. Necaise / John Wiley & Sons / 2013-4-26 / GBP 181.99

Cay Horstmann's" Python for Everyone "provides readers with step-by-step guidance, a feature that is immensely helpful for building confidence and providing an outline for the task at hand. "Problem S......一起来看看 《Python for Everyone》 这本书的介绍吧!

在线进制转换器
在线进制转换器

各进制数互转换器

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具