The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

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'})

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

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