LS::Cache::Config - Configuration loader for LSID Cache manager
# 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');
The Cache configuration object holds all configuration parameters for the LSID cache manager. Additionally, it can read and validate cache settings from directories.
Create a new cache configuration object with the specified options:
cache-root-dir: The root cache directory. log-file: The log file name.
Returns the value that the configuration entry holds.
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 the directory's cache settings in to the specified configuration object. Invalid cache settings will be ignored.
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
To install LS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm LS
CPAN shell
perl -MCPAN -e shell install LS
For more information on module installation, please visit the detailed CPAN module installation guide.