Genezzo::BufCa::BufCaElt

Buffer Cache Element
Download

Genezzo::BufCa::BufCaElt Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Jeffrey I. Cohen
  • Publisher web site:
  • http://search.cpan.org/~jcohen/Genezzo-0.72/lib/Genezzo.pm

Genezzo::BufCa::BufCaElt Tags


Genezzo::BufCa::BufCaElt Description

Buffer Cache Element Genezzo::BufCa::BufCaElt is a buffer cache element in Perl.A Buffer Cache Element contains an actual datablock plus some minimal state information: the blocksize, whether the block is in use, and whether the contents have been modified. BufCaElt clients can use GetInfo() to store and retrieve a hash of arbitrary information for each block.FUNCTIONSGetInfo - return a reference to the info hash. BCFile uses this hash to store the filenum/blocknum info associated with the current BufCaElt.GetContrib - return a reference to the info hash. BCFile uses this hash to store the filenum/blocknum info associated with the current BufCaElt._dirty - set/clear the "dirty" bit. Used to indicate if buffer has been modified._postinit - Pass a callback to the DirtyScalar tie so the "dirty" bit gets set automatically whenever the buffer is modified. Also, pass a reference to $self so DirtyScalar can use GetInfo to find the current filenum/blocknum and any other interesting information._pin - used to pin/unpin a block in the cache via the PinScalar tie. Blocks that are actively referenced must remain "pinned" in the buffer cache, but unreferenced blocks can be freed. If they are "dirty", the modified buffer must be written to disk, else the BufCaElt can simply be re-used. Requirements: · Perl


Genezzo::BufCa::BufCaElt Related Software