summaryrefslogtreecommitdiff
path: root/lib/Net/Riak.pm
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2010-11-02 15:32:45 +0100
committerfranck cuny <franck@lumberjaph.net>2010-11-02 15:32:45 +0100
commit5573fc78e8b093cea69578d715634259815a5c07 (patch)
treed0e91eade3880c426e78ebd7d20f9fab5a219ba9 /lib/Net/Riak.pm
parentpulling the =build me a link= logic in to a single method and then wrapping t... (diff)
parentMerge branch 'master' of github.com:robinedwards/net-riak (diff)
downloadnet-riak-5573fc78e8b093cea69578d715634259815a5c07.tar.gz
resolved merge conflict
Diffstat (limited to 'lib/Net/Riak.pm')
-rw-r--r--lib/Net/Riak.pm33
1 files changed, 21 insertions, 12 deletions
diff --git a/lib/Net/Riak.pm b/lib/Net/Riak.pm
index 156779b..77bd773 100644
--- a/lib/Net/Riak.pm
+++ b/lib/Net/Riak.pm
@@ -13,7 +13,7 @@ has client => (
is => 'rw',
isa => 'Net::Riak::Client',
required => 1,
- handles => [qw/request useragent is_alive/]
+ handles => [qw/is_alive http_request http_response/]
);
sub BUILDARGS {
@@ -39,6 +39,8 @@ sub bucket {
$obj->store;
my $obj = $bucket->get('new_post');
+ my $req = $client->http_request; # last request
+ $client->http_response # last response
=head1 DESCRIPTION
@@ -100,17 +102,15 @@ client_id for this client
=back
-=head2 METHODS
+=head1 METHODS
-=over 4
-
-=item bucket
+=head2 bucket
my $bucket = $client->bucket($name);
Get the bucket by the specified name. Since buckets always exist, this will always return a L<Net::Riak::Bucket>
-=item is_alive
+=head2 is_alive
if (!$client->is_alive) {
...
@@ -118,31 +118,40 @@ Get the bucket by the specified name. Since buckets always exist, this will alwa
Check if the Riak server for this client is alive
-=item add
+=head2 add
my $map_reduce = $client->add('bucket_name', 'key');
Start assembling a Map/Reduce operation
-=item link
+=head2 link
my $map_reduce = $client->link();
Start assembling a Map/Reduce operation
-=item map
+=head2 map
my $map_reduce = $client->add('bucket_name', 'key')->map("function ...");
Start assembling a Map/Reduce operation
-=item reduce
+=head2 reduce
my $map_reduce = $client->add(..)->map(..)->reduce("function ...");
Start assembling a Map/Reduce operation
-=back
+=method http_request
-=cut
+Returns the HTTP::Request object from the last request
+
+=method http_response
+Returns a HTTP::Response object from the last request
+
+=head2 SEE ALSO
+
+Net::Riak::MapReduce
+
+=cut