Publisher's description
Genezzo:: Busca:: BufCaElt is a cache buffer in Buffer Cache Perl.A element contains a block of real data and some information on the state Minimum block size If the block is in use, and if the contents have been changed. BufCaElt customers can use GetInfo () to store and retrieve a hash of arbitrary information for each block.FUNCTIONSGetInfo - Returns a reference to hash of info. BCFile uses this hash to store FileNum / info blocknum associated with BufCaElt. GetContrib current - Returns a reference to hash of info. BCFile uses this hash to store FileNum / info blocknum associated with BufCaElt. _dirty Current - set / clear the "dirty" bit. Used to indicate if the buffer was modified._postinit - Pass a callback to tie DirtyScalar so that the "dirty" bit is assigned automatically every time the buffer is modified. In addition, pass a reference to $ self if DirtyScalar GetInfo can use to find the current FileNum / blocknum and any other interesting information._pin - used for pine / detach a block in the cache via the link PinScalar. Blocks that are referenced must remain actively "Favorites" in the buffer cache, but related crashes may be released. If they are "dirty" buffer amendment must be written to disk, otherwise the BufCaElt can simply be reused. Requirements: Perl ยท