NAME

Data::Riak::Result::WithLocation - Results with a Location

VERSION

version 2.0

ATTRIBUTES

location

The location URI as provided by Riak.

bucket

The Data::Riak::Bucket this result was retrieved from.

bucket_name

The name of the bucket this result was retrieved from.

key

The key this object is stored under within its bucket.

METHODS

sync

Re-fetches the object from its bucket and returns a new instance representing the latest version of the object in storage.

save (%opts)

$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.

If the new_links option isn't given, the current ->links won't be altered.

The updated object is returned.

save_unless_modified

$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.

linkwalk

See "LINKWALKING" in Data::Riak.

AUTHORS

  • Andrew Nelson <anelson at cpan.org>

  • Florian Ragwitz <rafl@debian.org>

COPYRIGHT AND LICENSE

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.