NAME
DB::AsKVS - This module is using RDBMS as KVS.
SYNOPSIS
#!/usr/bin/perl
use strict;
use warnings;
use DB::AsKVS;
my $param = {
  rdbms => [
     {
        driver => 'mysql',
        dbname => 'demo',
        host => 'localhost',
        port => 3306,
        uid => 'root',
        pwd => 'password',
        opt => {},
     },
  ],
  memcached => [
     {
        host => 'localhost',
        port => 11211,
     },
  ], 
};
my $db = new DB::AsKVS($param);
$db->create("RowKey");
$db->put("RowKey", "Key", "Value");
print $db->get("RowKey", "Key");
DISCRIPTION
The DB::AsKVS module can use RDBMS as KVS. To use this module, You will be able to design architecture for scale out.
Usage
Constructor
my $db = new DB::AsKVS($param);
* $param is parameter of RDBMS and Memcached.
  Please show SYNOPSIS section.
Methods
$db->create("RowKey");
Create the RowKey.
$db->put("RowKey", "Key", "Value");
insert data.
my $return_vaule = $db->get("RowKey", "Key");
This method pick up the data for matching "RowKey" and "Key".
$return_value is scalar value.
my $return_value = $db->get_multi("RowKey", "Part of Key value");
This method pick up the data for matching "RowKey" and "Key".
$return_value is hash reference of Key and Value.
$db->remove("RowKey", "Key");
This method is deleteing data for matching "RowKey" and "Key".
Copyright
Kazunori Minoda (C)2013
5 POD Errors
The following errors were encountered while parsing the POD:
- Around line 23:
 =pod directives shouldn't be over one line long! Ignoring all 7 lines of content
- Around line 46:
 =pod directives shouldn't be over one line long! Ignoring all 7 lines of content
- Around line 72:
 =pod directives shouldn't be over one line long! Ignoring all 8 lines of content
- Around line 101:
 =pod directives shouldn't be over one line long! Ignoring all 7 lines of content
- Around line 131:
 =pod directives shouldn't be over one line long! Ignoring all 7 lines of content