File::Storage::Stat - Storage manager of minimum size


File-Storage-Stat documentation  | view source Contained in the File-Storage-Stat distribution.

Index


NAME

Top

File::Storage::Stat - Storage manager of minimum size

SYNOPSIS

Top

  use File::Storage::Stat;

  my $fss = File::Storage::Stat->new({FilePath => 'filepath'});
  $fss->set(100, 1000);
  my($a, $b) = $fss->get;#max 4byte int.

  my $fss = File::Storage::Stat->new({FilePath => 'filepath', Type => 'char'});
  $fss->set('hoge', 'test');# max 4byte char.
  my($a, $b) = $fss->get;




DESCRIPTION

Top

small data is stored in atime and mtime of file.

METHODS

Top

set(data1, data2)

data is set. the data of less than 4byte can be preserved respectively.

get()

the preserved is loaded.

AUTHOR

Top

Kazuhiro Osawa <ko@yappo.ne.jp>

COPYRIGHT AND LICENSE

Top


File-Storage-Stat documentation  | view source Contained in the File-Storage-Stat distribution.