EntityModel::Storage::PerlAsync - backend storage interface for EntityModel
version 0.102
See EntityModel.
Wrapper around the Perl storage module to defer responses until idle point in an IO::Async loop.
Subclassed instantiation, requires an IO::Async::Loop passed as the loop named parameter.
loop
Reads the data for the given entity and returns hashref with the appropriate data.
Parameters:
entity - EntityModel::Entity
id - ID to read data from
Callbacks (included in parameter list above):
on_complete - called when the value has been read, includes the value
on_not_found - called if entry not found
Returns $self.
Creates new entry for the given EntityModel::Entity.
data - actual data values
on_complete - called when the value has been created, will be passed the assigned ID
Stores data to the given entity and ID.
id - ID to store data to
on_complete - called when the value has been stored, will be passed the assigned ID
Removes given ID from storage.
on_complete - called when the value has been removed
on_item - called for each item
on_not_found - called once if no items were found
on_complete - called when no more items are forthcoming (regardless of whether any were found or not)
on_fail - called if there was an error
adjacent, apply_entity, dump, field_list, outer, read_fields, read_primary, table_list
apply_model, apply_model_and_schema, backend_ready, first, last, next, prev, register, transaction_commit, transaction_end, transaction_rollback, transaction_start, wait_for_backend
add_handler_for_event, clear_event_handlers, event_handlers, invoke_event, subscribe_to_event, unsubscribe_from_event
clone, new, sap
Tom Molesworth <cpan@entitymodel.com>
Copyright Tom Molesworth 2008-2011. Licensed under the same terms as Perl itself.
To install EntityModel, copy and paste the appropriate command in to your terminal.
cpanm
cpanm EntityModel
CPAN shell
perl -MCPAN -e shell install EntityModel
For more information on module installation, please visit the detailed CPAN module installation guide.