Cache::SizeAwareFileCache -- Cache::FileCacheの拡張
SizeAwareFileCacheクラスは、キャッシュのベースになっている 共有メモリの大きさを(バイト単位で)動的に制限する能力を追加します。 このクラスは、'max_size'オプションとlimit_size( $size )' メソッドを 提供し、SizeAwareCacheインターフェースも実装します。
use Cache::SizeAwareFileCache;
my $cache =
new Cache::SizeAwareFileCache( { 'namespace' => 'MyNamespace',
'default_expires_in' => 600,
'max_size' => 10000 } );
APIドキュメントについてはCache::CacheとCache::SizeAwareCacheをご覧ください。
標準のオプションについてはCache::CacheとCache::SizeAwareCacheをご覧ください。
デフォルトのプロパティについてはCache::CacheとCache::SizeAwareCacheをご覧ください。
Cache::Cache, Cache::SizeAwareCache, Cache::FileCache
Original author: DeWitt Clinton <dewitt@unto.net>
Also: Portions of this code are a rewrite of David Coppit's excellent extentions to the original File::Cache
Last author: $Author: hippo2000 $
Copyright (C) 2001, 2002 DeWitt Clinton