Module: kamailio Branch: master Commit: 0cf6471045b4ebbc83ef64c026040b26b907df1a URL: https://github.com/kamailio/kamailio/commit/0cf6471045b4ebbc83ef64c026040b26...
Author: Lucian Balaceanu lucian.balaceanu@1and1.ro Committer: Lucian Balaceanu lucian.balaceanu@1and1.ro Date: 2025-07-10T17:18:41+03:00
db_redis: add Redis auto expiry support by changing sets to hashes
Kudos go to Pawel Kuzak.
Redis v7.4, hashes support auto-expiry for individual keys. By transforming sets into hashes we can support auto-expiry.
Adding module parameters mapping_struct_type, hash_expires, hash_value to control the described feature.
---
Modified: src/modules/db_redis/db_redis_mod.c Modified: src/modules/db_redis/db_redis_mod.h Modified: src/modules/db_redis/doc/db_redis_admin.xml Modified: src/modules/db_redis/redis_connection.c Modified: src/modules/db_redis/redis_dbase.c Modified: src/modules/db_redis/redis_dbase.h
---
Diff: https://github.com/kamailio/kamailio/commit/0cf6471045b4ebbc83ef64c026040b26... Patch: https://github.com/kamailio/kamailio/commit/0cf6471045b4ebbc83ef64c026040b26...