NAME

Net::Etcd::KV

DESCRIPTION

Key Value role providing easy access to Put and Range classes

PUBLIC METHODS

range

Range gets the keys in the range from the key-value store.

# get range
$etcd->range({key =>'test0', range_end => 'test100'})

deleterange

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

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

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.

op

compare