Net::Etcd::KV
Key Value role providing easy access to Put and Range classes
Range gets the keys in the range from the key-value store.
# get range $etcd->range({key =>'test0', range_end => 'test100'})
DeleteRange deletes the given range from the key-value store. A delete request increments the revision of the key-value store and generates a delete event in the event history for every deleted key.
$etcd->deleterange({key => 'test0'})
Put puts the given key into the key-value store. A put request increments the revision of the key-value store and generates one event in the event history.
$etcd->put({key =>'test0', value=> 'bar'})
Txn processes multiple requests in a single transaction. A txn request increments the revision of the key-value store and generates events with the same revision for every completed request. It is not allowed to modify the same key several times within one txn.
To install Net::Etcd, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Etcd
CPAN shell
perl -MCPAN -e shell install Net::Etcd
For more information on module installation, please visit the detailed CPAN module installation guide.