Cache-RamDisk

 view release on metacpan or  search on metacpan

lib/Cache/RamDisk/Functions.pm  view on Meta::CPAN

   cd /tmp/rd0 && ls -la
   ipcs


=head2 cache_status ( $basename [, $shmemkey] )

   my $s = cache_status('/tmp/rd');
   print $s->key_stat('fie');
   print $s->rd_stat(0)->{bavail};

The monitoring tool for a running cache. Requires the cache's base pathname (-fragment, see cache_install), and
the 'ShMem' key for this cache, if another than the default value 'RdLk' had been chosen.
Always (!) returns a Class::Struct reference with the following accessible members:

   $s->error                  # contains the error message in case something went wrong
   $s->start_disk             # the index of the first rd allocated
   $s->disks                  # the total of allocated disks
   $s->blocksize              # guess what
   $s->keys                   # a key's limit, as set in 'Keys'
   $s->key_stat               # the number of items currently being stored for a key
   $s->rd_stat                # the resulting hashref from a df() call on a rd



( run in 0.956 second using v1.01-cache-2.11-cpan-364913b4093 )