Main > Programming > Libraries >

Class::DataStore 0.07

Class::DataStore 0.07

Sponsored Links

Class::DataStore 0.07 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.004 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 1113
Date added: 2006-10-06
Publisher: Eric Folley

Class::DataStore 0.07 description

Class::DataStore is a Perl module for generic OO data storage/retrieval.

SYNOPSIS

my %values = ( one => 1, two => 2 );
my $store = Class::DataStore->new( %values );

# using get/set methods
$store->set( three, 3 );
my $three = $store->get( three );

# using AUTOLOAD method
$store->four( 4 );
my $four = $store->four;
my @four = $store->four; # returns a list

my $exists = $store->exists( three ); # $exists = 1
my $data_hashref = $store->dump;
$store->clear;

Class::DataStore implements a simple storage system for object data. This data can be accessed via get/set methods and AUTOLOAD. AUTOLOAD calls are not added to the symbol table, so using get/set will be faster. Using AUTOLOAD also means that you will not be able to store data with a key that is already used by a instance method, such as "get" or "exists".
This module was written originally as part of a website framework that was used for the Democratic National Committee website in 2004. Some of the implementations here, such as get() optionally returning a list if called in array context, reflect the way this module was originally used for building web applications.

Class::DataStore is most useful when subclassed. To preserve the AUTOLOAD functionality, be sure to add the following when setting up the subclass:

use base Class::DataStore;
*AUTOLOAD = &Class::DataStore::AUTOLOAD;
This module is also a useful add-on for modules that need quick and simple data storage, e.g. to store configuration data:
$self->{_config} = Class::Datastore->new( $config_data );
sub config { return $_[0]->{_config}; }
my $server = $self->config->server;
my $sender = $self->config->get( sender );

Class::DataStore 0.07 Screenshot

Advertisements

Class::DataStore 0.07 Keywords

Bookmark Class::DataStore 0.07

Hyperlink code:
Link for forum:

Class::DataStore 0.07 Copyright

WareSeeker periodically updates pricing and software information of Class::DataStore 0.07 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Class::DataStore 0.07 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
Class::Meta::Type is a Perl module for data type validation and accessor building. Free Download
Data::Stag is a Perl module with structured tags datastructures. Free Download
Data::Type is a Perl module with versatile data and value types. Free Download
Class::Accessor::Fast::Contained is a Perl module for fast accessors with data containment. Free Download
Data.FormValidators aim is to bring all the benefits of the perl module Data::FormValidator over to javascript. Free Download
Data::Generate allows you to create various types of synthetic data by parsing "regex-like" data creation rules. Free Download
Apache::Storage is Perl module containing simple functions to store and retrieve information from within the Apache process. Free Download
Class::Declare::Attributes is a Perl module with Class::Declare method types using Perl attributes. Free Download