<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#ffffff" text="#000000">
Hello,<br>
<br>
A new <b>CACHEDB_MONGODB</b> module has been added to OpenSIPS
trunk, and it will also be present in the future 1.9 release.<br>
<br>
The module implements the Key-Value Interface [1] to allow the
script writer and also the module writer to connect and do Key-Value
type operations ( store,fetch,remove,counter_add,counter_sub ) on a
MongoDB database. <br>
The module supports both connection to a single MongoDB instance (
true single instance or mongos ) or to a MongoDB Replica Set.<br>
<br>
Also, the CacheDB interface was enhanced in order to support RAW
queries ( [2] ). Due to the Key-Value nature of the CacheDB
interface, the developer could not take full advantage of the
capabilities of the NoSQL back-end. The raw queries should
compensate that gap, allowing to run raw queries in a back-end
dependent language.<br>
<br>
The CACHEDB_MONGODB module implements the newly added RAW query from
the interface, thus you can run whatever query that the MongoDB
back-end supports, taking full advatange of it. The query syntax is
a JSON-based one, very similar to the one that one would use to run
commands in the mongo CLI. The query results are also returned as
JSON documents, that one can further process in the OpenSIPS script
by using the JSON module. For the full description of the raw query
capabilities, see the 'Raw Query Syntax' section ( [3] ) in the
module documentation.<br>
<br>
For a full documentation of the module and usage examples, visit [4]
.<br>
Testing and feedback is very much welcome.<br>
<br>
[1] <a class="moz-txt-link-freetext" href="http://www.opensips.org/Resources/DocsTutKvinterface">http://www.opensips.org/Resources/DocsTutKvinterface</a><br>
[2] <a class="moz-txt-link-freetext" href="http://www.opensips.org/Resources/DocsCoreFcn#toc116">http://www.opensips.org/Resources/DocsCoreFcn#toc116</a><br>
[3]
<a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/devel/cachedb_mongodb.html#id249157">http://www.opensips.org/html/docs/modules/devel/cachedb_mongodb.html#id249157</a><br>
[4]
<a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/devel/cachedb_mongodb.html">http://www.opensips.org/html/docs/modules/devel/cachedb_mongodb.html</a><br>
<br>
Best Regards,<br>
<pre class="moz-signature" cols="72">--
Vlad Paiu
OpenSIPS Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a> </pre>
</body>
</html>