JCS provides a clear method for removing all cached data from the cache region that it was called with and a remove method for removing a specific cached item.
JCS提供了一种clear方法,用于从调用的缓存区域中删除所有缓存数据。
After retrieving the JCS instance, you can invoke the most needed methods.
检索JCS实例后,可以调用最需要的方法。
JCS has two dependencies: concurrent and commons-logging. (Prior to JCS version 1.2.7.0, there were two additional dependencies: commons-collections and commons-lang.)
JCS有两个依赖项:concurrent和commons -logging (JCS1.2.7.0之前的版本中,还有两个其他依赖项:commons - collections和commons - lang)。
A good way to learn the basics of JCS is to view the API「s most commonly used methods.
学习JCS基础知识的一个好方法是查看API最常用的方法。
To improve performance, JCS stores the cached data keys in memory while storing the actual cached data on the file disk.
为了提高性能,JCS在文件磁盘上存储实际缓存数据的同时,会在内存中存储缓存数据键。
Configuring JCS is as simple as creating and populating a cache.ccf file.
配置JCS就是简单地创建和填充一个cache .ccf文件。
The disk_region is of type IndexedDiskCacheFactory, and the file is specified on the disk as c: \ JCS \ disk_region.
disk_region是IndexedDiskCacheFactory类型,并且该文件在磁盘上指定为c: \jcs \ disk_region。
This data region performs well, and most JCS users designate it as the default cache region to use first.
这个数据区域执行良好,大多数JCS用户将它指定为最先使用的默认缓存区域。
The first step in designing a simple object-oriented site around JCS starts with the object you need to store.
设计一个简单的面向对象的JCS站点的第一个步骤是创建需要存储的对象。
Initializing the JCS cache region object gives you access to almost all of the common methods you」ll need. Listing 3 initializes the JCS object and gets an instance of the default cache region.
初始化jcs缓存区域对象能使您访问大部分所需的常用方法。
In a typical JCS configuration that USES the memory region first, any data that can't be held in the memory region is then written to the disk region.
在首先使用内存区域的典型JCS配置中,任何无法在内存区域中保存的数据都会写入磁盘区域中。
This article explains how to configure and use JCS to cache data for your Web applications.
本文将说明如何配置和使用JCS来缓存Web应用程序的数据。
The previous classes demonstrate how straightforward caching objects with JCS is.
前面的几个类展示了使用JCS缓存对象是很简单的。