Cache::KyotoTycoon - KyotoTycoon client library
use KyotoTycoon; my $kt = KyotoTycoon->new(host => '127.0.0.1', port => 1978); $kt->set('foo' => bar'); $kt->get('foo'); # => 'bar'
KyotoTycoon.pm is KyotoTycoon client library for Perl5.
THIS MODULE IS IN ITS BETA QUALITY. THE API MAY CHANGE IN THE FUTURE.
This module throws exception if got Server Error.
Timeout value for each request in seconds.
Default: 1 second
Host name of server machine.
Default: '127.0.0.1'
Port number of server process.
Default: 1978
DB name or id.
Default: 0
Getter/Setter of DB name/id.
Create new cursor object. This method returns instance of KyotoTycoon::Cursor.
The server returns $args. This method is useful for testing server.
$args is hashref.
Return: the copy of $args.
Get server report.
Return: server status information in hashref.
Not Implemented Yet.
Get database status information.
Return: database status information in hashref.
Remove all elements for the storage.
Return: Not a useful value.
Synchronize database with file system.
$hard: call fsync() or not.
$command: call $command in synchronization state.
Return: 1 if succeeded, 0 if $command returns false.
Store $value to $key.
$xt: expiration time. If $xt>0, expiration time in seconds from now. If $xt<0, the epoch time. It is never remove if missing $xt.
Return: not a useful value.
Store record. This method is not store if the $key is already in the database.
Return: 1 if succeeded. 0 if $key is already in the db.
Store the record, ignore if the record is not exists in the database.
Return: 1 if succeeded. 0 if $key is not exists in the database.
Store the record, append the $value to existent record if already exists entry.
Return: not useful value.
$num: incremental
Return: value after increment.
compare and swap.
Return: 1 if succeeded, 0 if failed.
Remove $key from database.
Return 1 if removed, 0 if record does not exists.
Get $key from database.
Return: the value from database. undef if not exists in database.
Store multiple values in one time.
Remove multiple keys in one time.
Get multiple values in one time.
Return: records in hashref.
Tokuhiro Matsuno <tokuhirom AAJKLFJEF GMAIL COM>
Copyright (C) Tokuhiro Matsuno
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Cache::KyotoTycoon, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Cache::KyotoTycoon
CPAN shell
perl -MCPAN -e shell install Cache::KyotoTycoon
For more information on module installation, please visit the detailed CPAN module installation guide.