summaryrefslogtreecommitdiff
path: root/lib/Net/Riak.pm
diff options
context:
space:
mode:
authorRobin Edwards <robin.ge@gmail.com>2013-03-01 12:53:58 +0000
committerRobin Edwards <robin.ge@gmail.com>2013-03-01 12:53:58 +0000
commit7f1adb8497d63200ecebd3cf229cf240ab0eaf21 (patch)
treee60631e6bc517d3d40ad4929da5935065e254a12 /lib/Net/Riak.pm
parentRemove deprecations (diff)
downloadnet-riak-7f1adb8497d63200ecebd3cf229cf240ab0eaf21.tar.gz
Fix ws
Diffstat (limited to 'lib/Net/Riak.pm')
-rw-r--r--lib/Net/Riak.pm24
1 files changed, 12 insertions, 12 deletions
diff --git a/lib/Net/Riak.pm b/lib/Net/Riak.pm
index 1fd23a6..243244f 100644
--- a/lib/Net/Riak.pm
+++ b/lib/Net/Riak.pm
@@ -66,23 +66,23 @@ sub bucket {
q => 'field:value'
);
- # Secondary index setup (REST interface)
+ # Secondary index setup (REST interface)
my $obj3 = $bucket->new_object('foo3', {...});
$obj3->add_index('myindex_bin','myvalue' );
$obj3->add_index('number_int', 1001);
$obj3->store;
- # Get all keys for a specific index/value pair
- my @keys = $client->index('mybucket', 'myindex_bin', 'myvalue' );
-
- # Get all keys for a range of index value pairs
- my @keys = $client->index('mybucket', 'number_int', 500, 1500);
-
- # Removing a secondary index (REST interface)
- my $new_obj = $bucket->get('foo3');
- $new_obj->remove_index('number_int', 1001);
- $new_obj->store;
-
+ # Get all keys for a specific index/value pair
+ my @keys = $client->index('mybucket', 'myindex_bin', 'myvalue' );
+
+ # Get all keys for a range of index value pairs
+ my @keys = $client->index('mybucket', 'number_int', 500, 1500);
+
+ # Removing a secondary index (REST interface)
+ my $new_obj = $bucket->get('foo3');
+ $new_obj->remove_index('number_int', 1001);
+ $new_obj->store;
+
=head1 DESCRIPTION
=head2 ATTRIBUTES