Data::Riak::Result::WithLocation - Results with a Location
version 1.7
The location URI as provided by Riak.
The Data::Riak::Bucket this result was retrieved from.
The name of the bucket this result was retrieved from.
The key this object is stored under within its bucket.
Re-fetches the object from its bucket and returns a new instance representing the latest version of the object in storage.
$obj->save( new_value => $new_value, new_links => $new_links, );
Saves the object back into its bucket, possibly with a different set of links or a different value.
If the new_value option isn't given, the current ->value won't be altered.
new_value
->value
If the new_links option isn't given, the current ->links won't be altered.
new_links
->links
The updated object is returned.
$obj->save_unless_modified( new_value => $new_value, new_links => $new_links, );
Line "save", but will throw an exception when attempting to overwrite changes that have been made to this object within Riak since the current $obj has been retrieved.
$obj
See "LINKWALKING" in Data::Riak.
Andrew Nelson <anelson at cpan.org>
Florian Ragwitz <rafl@debian.org>
This software is copyright (c) 2013 by Infinity Interactive.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Data::Riak, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::Riak
CPAN shell
perl -MCPAN -e shell install Data::Riak
For more information on module installation, please visit the detailed CPAN module installation guide.