NAME
WebFetch::Data::Config - WebFetch configuration data management
VERSION
version 0.15.8
SYNOPSIS
In all classes other than WebFetch, use WebFetch's config() and has_config() class methods.
use WebFetch;
# ...
WebFetch->config($key, $write_value);
my $read_value = WebFetch->config($key);
my $bool_value = WebFetch->has_config($key);
my $del_value = WebFetch->del_config($key);
From within WebFetch, class or instance methods may be used interchangeably.
use WebFetch::Data::Config;
WebFetch::Data::Config->instance(@params); # instantiate singleton with optional initalization data
#...
my $config_instance = WebFetch::Data::Config->instance();
#...
$config_instance->write_accessor($key, $write_value);
my $read_value = $config_instance->read_accessor($key);
my $bool_value = $config_instance->contains($key);
my $del_value = $config_instance->del($key);
# or
WebFetch::Data::Config->accessor($key, $write_value);
my $read_value = WebFetch::Data::Config->accessor($key);
my $bool_value = WebFetch::Data::Config->contains($key);
my $del_value = WebFetch::Data::Config->del($key);
DESCRIPTION
WebFetch::Data::Config is a key/value store for global WebFetch configuration data. The methods of this class should only be called from WebFetch. Otherwise use the config() and has_config() class methods provided by WebFetch to access it.
SEE ALSO
WebFetch https://github.com/ikluft/WebFetch
BUGS AND LIMITATIONS
Please report bugs via GitHub at https://github.com/ikluft/WebFetch/issues
Patches and enhancements may be submitted via a pull request at https://github.com/ikluft/WebFetch/pulls
AUTHOR
Ian Kluft <https://github.com/ikluft>
COPYRIGHT AND LICENSE
This software is Copyright (c) 1998-2023 by Ian Kluft.
This is free software, licensed under:
The GNU General Public License, Version 3, June 2007