Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Interface to the Cassandra distributed database
Perl
tree: 2f69cd6fa6

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
examples
lib/Net
CHANGES
MANIFEST
MANIFEST.SKIP
Makefile.PL
README

README

NAME
    Net::Cassandra - Interface to Cassandra

SYNOPSIS
      my $cassandra = Net::Cassandra->new;
      my $client    = $cassandra->client;

      my $key       = '123';
      my $timestamp = time;

      eval {
          $client->insert( 'Table1', $key, 'Standard1:name', 'Leon Brocard',
              $timestamp, 0 );
      };
      die $@->why if $@;

      eval {
          $client->remove( 'Table1', $key, 'Standard1:age', $timestamp );
      };
      die $@->why if $@;

      my $column;
      eval { $column = $client->get_column( 'Table1', $key, 'Standard1:name' ); };
      die $@->why if $@;
      say $column->{columnName}, ', ', $column->{value}, ', ', $column->{timestamp};

DESCRIPTION
    This module provides an interface the to Cassandra distributed database.
    It uses the Thrift interface. This is changing rapidly and supports the
    development version of Cassandra built from Subversion trunk.

AUTHOR
    Leon Brocard <acme@astray.com>.

COPYRIGHT
    Copyright (C) 2009, Leon Brocard

LICENSE
    This module is free software; you can redistribute it or modify it under
    the same terms as Perl itself.

Something went wrong with that request. Please try again.