Table of Contents

User Comments

STACK style Slot methods

Uses the Slot in FILO mode, pushing and pulling objects at the same end of a list. The STACK API-Namespace is useful for creating a global Application context stack.

opensrf.persist.stack.push( slot_name, object )

Adds an object to a Slot in FILO order.

opensrf.persist.stack.pop( slot_name )

Removes and returns the next value in a STACK type Slot.

opensrf.persist.stack.peek( slot_name )

Returns the next value in a STACK type Slot <u>without</u> removing it.

opensrf.persist.stack.peek.all( slot_name )

Returns all values in a STACK type Slot <u>without</u> removing them.

opensrf.persist.stack.peek.all.atomic( slot_name )

Returns all values in a STACK type Slot <u>without</u> removing them.

opensrf.persist.stack.depth( slot_name )

Returns the number of objects in the STACK type Slot.

opensrf.persist.stack.size( slot_name )

Returns the number bytes taken up by the JSON encoded version of the objects in the STACK type Slot.