NAME
Redis::Object::Table - Base class for Redis::Object tables
DESCRIPTION
Base class for all tables.
SYNOPSIS
See L<Redis::Object>
ATTRIBUTES
id
Every item has an "id" field. Do not overwrite it
METHODS
INDEX_ATTRIBUTES
If implemented, should return array of attribute names which should be indexed.
Indexed columns are vastly faster to search via string compare or string prefix searches (does not affect other search types)
Keep in mind: Changing later on the index, will not affect already written items!
sub INDEX_ATTRIBUTES { qw/ attrib1 attrib2 / }
update [$attr_ref]
Commit all changes in the object to Redis
$attr_ref
Optional hash of ( attribname => value )
increment $attrib_name, [$amount]
Increment an attribute.
$attrib_name
Name of the attribute to increment
$amount
Optional amount, defaults to 1
remove
Remove the item from the database
table_name
Returns the table name
AUTHOR
Ulrich Kautz <uk@fortrabbit.de>
COPYRIGHT
Copyright (c) 2011 the "AUTHOR" as listed above
LICENCSE
Same license as Perl itself.