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

Voldemort::Store

DESCRIPTION

The primary interface for interacting with a Voldemort store, synchronously or asynchromously.

PROPERTIES

connection

Moose Voldemort::Connection property, required on instanciation.

connection

Moose string property of the default store to use. If one is not provided, it must be provided on operations which manipulate data.

sync

Moose boolean property if the connection should be used synchronously or asynchronously. Changing this property mid-stride can cause confusion later getting results of operations.

ready

Method which performs a check on the IO::Connection for data. Defaults to a 1 second wait if the number of seconds is not passed in.

next_response

Method that retrieves the next response off the wire. In synchronous mode, this method is called for you. In asynchronous mode, you must call this yourself.

get/put/delete

Methods that perform operations on the store, named for their function. The first param of the method is a hash of the parameters. In asynchronous mode, these methods will not deserialize a result off the wire but instead queue them to be read by next_response.

store

The name of the store in voldemort to manipulate, defaults to default_store.

key

Key in which to operate.

node

For writes and deletes, which vectors are being modified. In scalar form or array ref, it is considered one writer. Passing in an array ref of [1,2] will create a single node vector of [1,2]. Then writing with a node of 1 will not modify the vector of [1,2].

value

Key for puts, the value to store.