[OpenSIPS-Devel] [OpenSIPS/opensips] 197720: cachedb_redis: Implement the "column oriented" Cac...
Liviu Chircu
noreply at github.com
Thu Jan 9 16:50:52 UTC 2025
Branch: refs/heads/master
Home: https://github.com/OpenSIPS/opensips
Commit: 1977206cbf549945b79a0b648331c1fa54b59b4a
https://github.com/OpenSIPS/opensips/commit/1977206cbf549945b79a0b648331c1fa54b59b4a
Author: Liviu Chircu <liviu at opensips.org>
Date: 2025-01-09 (Thu, 09 Jan 2025)
Changed paths:
M cachedb/cachedb_dict.c
M cachedb/cachedb_dict.h
M modules/cachedb_redis/cachedb_redis.c
M modules/cachedb_redis/cachedb_redis_dbase.c
M modules/cachedb_redis/cachedb_redis_dbase.h
M modules/usrloc/dlist.c
M modules/usrloc/udomain.c
Log Message:
-----------
cachedb_redis: Implement the "column oriented" CacheDB API
This allows OpenSIPS to use Redis as storage for the User Location data,
in both "Federation" and "Full Sharing" scenarios.
Requirement: *Redis JSON support* (using Redis Stack Server or similar).
(Redis JSON support is auto-detected, with appropriate info logs)
Federation Index Creation:
FT.CREATE idx:usrloc ON JSON PREFIX 1 usrloc: SCORE 1.0 SCHEMA
$.id AS id TEXT WEIGHT 1.0 $.aor AS aor TEXT WEIGHT 1.0
$.home_ip AS home_ip TEXT WEIGHT 1.0
Full Sharing Index Creation:
FT.CREATE idx:usrloc ON JSON PREFIX 1 usrloc: SCORE 1.0 SCHEMA
$.aor AS aor TEXT WEIGHT 1.0 $.aorhash AS aorhash NUMERIC
Testing: no crashes during stress-tests (in either usrloc scenario).
To unsubscribe from these emails, change your notification settings at https://github.com/OpenSIPS/opensips/settings/notifications
More information about the Devel
mailing list