- SEE ALSO
Virtual class. for caching into files object and stored them into a LIFO queue
Set the queue size in muber of object;
return true/false if the queue is overflowed (then the oldest one(s) must be ejected)
get/set verbose mode
get the temporary file (or create one on the first call)
dump on STDOUT the list of managed object in memory (not the persistent ones)
List all the object registered and if they are in file or memory. Report looks like
Get/set if the object is to be persistent (i.e. to be managed by the queue). Set persitency at new time
Serialize and save the object into a file.
Load object from the file, push it on the first position; remove file;
Get the file for the object (create on in the tempdir is none was defined);
returns the unique incremented key
Get the object out from the queue, save it on the disk;
Empty the object but the FileCached attributes
Push the object on the first position of the queue
Returns myself + refresh
set to true (default) to remove temporary files at the process end
Set the size for the queue of memory resident object (to be set before starting to instanciate objects)
Copyright (C) 2004-2006 Geneva Bioinformatics www.genebio.com
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Alexandre Masselot, www.genebio.com