Bot::BasicBot::Pluggable::Store

Bot::BasicBot::Pluggable::Store is a base class for the back-end pluggable store.
Download

Bot::BasicBot::Pluggable::Store Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Tom Insam
  • Publisher web site:
  • http://search.cpan.org/~tomi/URI-Find-Simple-1/lib/URI/Find/Simple.pm

Bot::BasicBot::Pluggable::Store Tags


Bot::BasicBot::Pluggable::Store Description

Bot::BasicBot::Pluggable::Store is a base class for the back-end pluggable store. Bot::BasicBot::Pluggable::Store is a base class for the back-end pluggable store.SYNOPSIS my $store = Bot::BasicBot::Pluggable::Store->new( option => "Value" ); my $name = $store->name; my $namespace = "MyModule"; for ( $store->keys($namespace) ) { my $value = $store->get($namespace, $_); $store->set( $namespace, $_ => "$value and your momma" ); }'real' store classes should subclass this and provide some persistent way of storing things.METHODSkeys( namespace )returns a list of all store keysget( namespace, var )returns the stored value of the key 'var'.set( namespace, key => val )sets stored value for 'key' to 'val'. returns the store object.unset( namespace, key )removes the key 'key' from the store. Returns the store object.namespaces()returns a list of all namespaces in the store.load()save()dump()Dumps the complete store to a huge scalar. This is mostly so you can convert from one store to another easily. Ie: my $from = Bot::BasicBot::Pluggable::Store::Storable->new(); my $to = Bot::BasicBot::Pluggable::Store::DBI->new( ... ); $to->restore( $from->dump );restore( data )restores the store from a dump(). Requirements: · Perl


Bot::BasicBot::Pluggable::Store Related Software