Cache::Object -- キャッシュに格納されたデータ
Objectはキャッシュ・インターフェースを実装しているクラスによって データを包むオブジェクト指向のラッパーとして使われます。エンドユーザは 通常Objectを直接使うことはありません。しかしCache::Cacheインターフェース でのget_objectを通して取り出すことが出来ます。
use Cache::Object;
my $object = new Cache::Object( );
$object->set_key( $key ); $object->set_data( $data ); $object->set_expires_at( $expires_at ); $object->set_created_at( $created_at );
そのオブジェクトが最後にアクセスされた時刻。さまざまなキャッシュ実装が LRUアルゴリズムのために情報を格納するため、accessed_atプロパティを 利用します。しかし全てのキャッシュが、このフィールドを更新するとは 保障されません。 for LRU algorithms. There is no guarentee that all caches will update this field, however.
The time at which the object was created.
A scalar containing or a reference pointing to the data to be stored.
The time at which the object should expire from the cache.
The key under which the object was stored.
The size of the frozen version of this object
Cache::Cache
Original author: DeWitt Clinton <dewitt@unto.net>
Last author: $Author: hippo2000 $
Copyright (C) 2001, 2002 DeWitt Clinton