NAME

Hub::Data::FileCache -

Part of the Hub Library

Top


SYNOPSIS

Top


DESCRIPTION

Top


METHODS

fattach fhandler frefresh
fattach
 Usage: fattach FILENAME, CLASS

Attach an instance of a class (which has a corresponding 'parsefile' method) to a file.

Returns an instance, which is a hash with members:

  lastread    # mod time last time we read it
  filename    # name
  lines       # ARRAY of lines in the file
  handlers    # HASH of attached classes

The instance is a singleton.

fhandler
 Usage: fhandler FILENAME, CLASSNAME

Find the instance of a particular class which is attached to the file

frefresh
 Usage: frefresh

Signal all instances to check to see if their file on disk has been modified.

If so, re-read the file and tell all your handlers to reparse themselves.

Top


INTERNAL

_read_from_disk
_read_from_disk
 Usage: _read_from_disk

Modify the provided instance to reflect what is on disk.

Top


AUTHOR

Ryan Gies

Top


COPYRIGHT

Copyright (c) 2006 Livesite Networks, LLC. All rights reserved.

Copyright (c) 2000-2005 Ryan Gies. All rights reserved.

Top


UPDATED

This file created by mkdocs.pl on 8/29/2006 at 2:07pm

Top