=encoding euc-jp =head1 名前 Cache::FileBackend -- ファイルシステムをベースとした永続化メカニズム =head1 説明 FileBackendクラスはファイルシステムにデータを永続化するために使われます =head1 概要 my $backend = new Cache::FileBackend( '/tmp/FileCache', 3, 000 ); See Cache::Backend for the usage synopsis. $backend->store( 'namespace', 'foo', 'bar' ); my $bar = $backend->restore( 'namespace', 'foo' ); my $size_of_bar = $backend->get_size( 'namespace', 'foo' ); foreach my $key ( $backend->get_keys( 'namespace' ) ) { $backend->delete_key( 'namespace', $key ); } foreach my $namespace ( $backend->get_namespaces( ) ) { $backend->delete_namespace( $namespace ); } =head1 メソッド See Cache::Backend for the API documentation. =over =item B I<$root>ディレクトリにデータを書き込み、I<$depth>レベルの深さの サブディレクトリを自動的に作成し、ディレクトリを作成するときに I<$directory_umask>のumaskを使う、新しいFileBackendを組み立てます。 =back =head1 プロパティ =over =item B<(get|set)_root> ファイルを格納する親ディレクトリの位置 =item B<(get|set)_depth> ファイルを格納するために作成されるサブディレクトリを分岐させる要素 =item B<(get|set)_directory_umask> ディレクトリを作成するときに使われるumask =back =head1 参考資料 Cache::Backend, Cache::MemoryBackend, Cache::SharedMemoryBackend =head1 作者 Original author: DeWitt Clinton Last author: $Author: iwai $ Copyright (C) 2001, 2002 DeWitt Clinton