The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

LS::Cache::Config - Configuration loader for LSID Cache manager

SYNOPSIS

 # Create a new configuration with the default settings, overridden
 # by those in /tmp/cache
 my $config = new LS::Cache::Config('cache-root-dir' => '/tmp/cache');

 print "Log filename: " . $config->get_config_entry('log-file');

DESCRIPTION

The Cache configuration object holds all configuration parameters for the LSID cache manager. Additionally, it can read and validate cache settings from directories.

CONSTRUCTORS

new ( %options )

Create a new cache configuration object with the specified options:

     cache-root-dir: The root cache directory.
     log-file: The log file name.

METHODS

get_config_entry ( $entry_name )

Returns the value that the configuration entry holds.

update_config ( $config_object_ref )

Update the configuration object's settings based on the reference passed. This could just be a hash with the appropriate keys set, it does not need to be an object.

read_cache_settings( $directory, $config_object_ref )

Read the directory's cache settings in to the specified configuration object. Invalid cache settings will be ignored.

COPYRIGHT

Copyright (c) 2002,2003 IBM Corporation. All rights reserved. This program and the accompanying materials are made available under the terms of the Common Public License v1.0 which accompanies this distribution, and is available at http://www.opensource.org/licenses/cpl.php