25.01.2015 Views

Using Node.js with Caché - InterSystems Documentation

Using Node.js with Caché - InterSystems Documentation

Using Node.js with Caché - InterSystems Documentation

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

4<br />

Reference for cache.node Methods<br />

This section provides detailed documentation for each of the functions supported by the <strong>Caché</strong> cache.node module. See<br />

the “Example Data” section for a listing of the data sets used by many of the examples in this section.<br />

The following functions are supported:<br />

• about() — see version().<br />

• close() — closes a previously opened database.<br />

• data() — tests for the existence of a global node.<br />

• function() — invokes a <strong>Caché</strong> function.<br />

• get() — retrieves a global node.<br />

• global_directory() — returns a list of globals held in the <strong>Caché</strong> database.<br />

• increment() — adds 1 to the value of an integer in a global node.<br />

• kill() — deletes a global node.<br />

• lock() — locks global nodes for exclusive use.<br />

• merge() — copies all or part of a global to another global.<br />

• next() — gets the next Global subscript on the current level.<br />

• next_node() — gets the next global node in collation order regardless of level.<br />

• open() — opens the specified <strong>Caché</strong> database.<br />

• order() — see next()<br />

• previous() — gets the previous Global subscript on the current level.<br />

• previous_node() — gets the previous global node in collation order regardless of level.<br />

• retrieve() — recursively retrieves all global nodes defined beneath a specified level.<br />

• set() — sets the value of a global node.<br />

• update() — writes the contents of a JSON object to the <strong>Caché</strong> database.<br />

• unlock() — unlocks global nodes previously locked by your program.<br />

• version() — returns basic version information about the cache.node module in use and the associated <strong>Caché</strong> database<br />

(if open).<br />

<strong>Using</strong> <strong>Node</strong>.<strong>js</strong> <strong>with</strong> <strong>Caché</strong> 17

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!