-
Notifications
You must be signed in to change notification settings - Fork 583
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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).
- Loading branch information
1 parent
af495d7
commit 1977206
Showing
7 changed files
with
1,309 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.