[OpenSIPS-Devel] [OpenSIPS/opensips] b45c1b: cachedb: Fix cap detection

Liviu Chircu liviu at opensips.org
Wed Feb 28 08:30:27 EST 2018


  Branch: refs/heads/feature/cachedb-column-oriented-api
  Home:   https://github.com/OpenSIPS/opensips
  Commit: b45c1bd83ad33912a3a3acacb48c60397b336f27
      https://github.com/OpenSIPS/opensips/commit/b45c1bd83ad33912a3a3acacb48c60397b336f27
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2018-02-28 (Wed, 28 Feb 2018)

  Changed paths:
    M cachedb/cachedb_cap.h

  Log Message:
  -----------
  cachedb: Fix cap detection


  Commit: ce54ac89db18ea134d8649215b783731cc988f91
      https://github.com/OpenSIPS/opensips/commit/ce54ac89db18ea134d8649215b783731cc988f91
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2018-02-28 (Wed, 28 Feb 2018)

  Changed paths:
    M cachedb/cachedb.h
    M cachedb/cachedb_cap.h
    M cachedb/cachedb_types.h
    M cachedb/test/test_backends.c
    M modules/cachedb_mongodb/cachedb_mongodb.c
    M modules/cachedb_mongodb/cachedb_mongodb_dbase.c
    M modules/cachedb_mongodb/cachedb_mongodb_dbase.h

  Log Message:
  -----------
  cachedb: Simplify the column-oriented API

Since some NoSQL backends support upsert-enabled "set" and "unset" operations
on multiple key/value pairs using a single query, we can merge the "set_cols()"
and "unset_cols()" functions into a single one: "update()". Current
backends known to support this are MongoDB and Cassandra.

Any backends which do not support the above will have to implement the update()
endpoint using two queries instead of one.


Compare: https://github.com/OpenSIPS/opensips/compare/2944ba83b8c3...ce54ac89db18


More information about the Devel mailing list