NAME

Whatbot::Database::Table::Soup - Allows commands access to a data "soup".

SYNOPSIS

use Whatbot::Database::Table::Soup;

DESCRIPTION

Whatbot::Database::Table::Soup allows commands to have access to a data "soup". This provides simple key->value database support to commands that don't require multiple column relationships. Handy for preferences, or simple data point updates. Auto handles update-or-create, expunging entries, etc.

METHODS

set( $key, $value )

Set a key/value pair. Auto creates an entry if it doesn't exist, or updates the existing entry. Returns the new value as set.

get( $key )

Get a value for the specified key. Returns undef if the key doesn't exist in the database.

clear( $key )

Clear key from storage.

get_hashref()

Get all pairs for the current module. Returns a hashref of the key-value pairs.

get_count()

Return number of entries for this module.

LICENSE/COPYRIGHT

Be excellent to each other and party on, dudes.