=encoding euc-jp =head1 名前 Cache::Object -- キャッシュに格納されたデータ =head1 説明 Objectはキャッシュ・インターフェースを実装しているクラスによって データを包むオブジェクト指向のラッパーとして使われます。エンドユーザは 通常Objectを直接使うことはありません。しかしCache::Cacheインターフェース でのget_objectを通して取り出すことが出来ます。 =head1 概要 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 ); =head1 メソッド =over =item B 新しいCache::Objectを組み立てます。 =back =head1 プロパティ =over =item B<(get|set)_accessed_at> そのオブジェクトが最後にアクセスされた時刻。さまざまなキャッシュ実装が LRUアルゴリズムのために情報を格納するため、accessed_atプロパティを 利用します。しかし全てのキャッシュが、このフィールドを更新するとは 保障されません。 for LRU algorithms. There is no guarentee that all caches will update this field, however. =item B<(get|set)_created_at> The time at which the object was created. =item B<(get|set)_data> A scalar containing or a reference pointing to the data to be stored. =item B<(get|set)_expires_at> The time at which the object should expire from the cache. =item B<(get|set)_key> The key under which the object was stored. =item B<(get|set)_size> The size of the frozen version of this object =back =head1 参考資料 Cache::Cache =head1 作者 Original author: DeWitt Clinton Last author: $Author: iwai $ Copyright (C) 2001, 2002 DeWitt Clinton