pfconfig::cached_hash
pfconfig::cached_array
This module serves as an interface to create an array that will proxy the access to it's attributes to the pfconfig service
It is used as a bridge between a pfconfig namespace element and an array without having a memory footprint unless when accessing data in the array
This class is used with tiying
Example : my @array; tie @array, 'pfconfig::cached_array', 'resource::authentication_sources'; print $hash{_ip};
This ties @array to the namespace 'resource::authentication_sources' defined in lib/pfconfig/namespaces/ and served though pfconfig
The access to index 0 then generates a GET though pfconfig that uses a UNIX socket
In order to call a method on this tied object my $zammit = tied(%hash)->zammit
Constructor of the array
Access an element by index in the array Will serve it from it's subcache (per process) if it has it and it's still valid Other than that it proxies the call to pfconfig
Get the size of the array Proxies the call to pfconfig
Check if an element exists in the array Proxies the call to pfconfig
Inverse inc. <info@inverse.ca>
Copyright (C) 2005-2015 Inverse inc.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program 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 General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Hey! The above document had some coding errors, which are explained below:
=back without =over