CACHEDB_LOCAL module
Admin Guide
Section titled “Admin Guide”Overview
Section titled “Overview”This module is an implementation of a local cache system designed as a hash table. It uses the Key-Value interface exported by OpenSIPS core.
Dependencies
Section titled “Dependencies”OpenSIPS Modules
Section titled “OpenSIPS Modules”None.
External Libraries or Applications
Section titled “External Libraries or Applications”The following libraries or applications must be installed before running OpenSIPS with this module loaded:
- none
Exported Parameters
Section titled “Exported Parameters”cache_table_size (int)
Section titled “cache_table_size (int)”The size of the hash table. This parameter will be used as the power of 2 when computing table size.
Default value is “9 (512)“.
...modparam("cachedb_local", "cache_table_size", 10)...exec_threshold (int)
Section titled “exec_threshold (int)”The maximum number of microseconds that a local cache query can last. Anything above the threshold will trigger a warning message to the log
Default value is “0 ( unlimited - no warnings )“.
...modparam("cachedb_local", "exec_threshold", 100000)...cache_clean_period (int)
Section titled “cache_clean_period (int)”The time interval in seconds at which to go through all the records and delete the expired ones.
Default value is “600 (10 minutes)”.
...modparam("cachedb_local", "cache_clean_period", 1200)...Exported Functions
Section titled “Exported Functions”cache_remove_chunk(glob)
Section titled “cache_remove_chunk(glob)”Remove all keys from local cache that match the glob pattern
This function can be used from all routes
... cache_remove_chunk("myinfo_*"); ...Exported MI Functions
Section titled “Exported MI Functions”cache_remove_chunk
Section titled “cache_remove_chunk”Removes all local cache entries that match the provided glob param.
Parameters :
- glob - keys that match glob will be removed
MI FIFO Command Format:
:cache_remove_chunk:_reply_fifo_file_ keyprefix* _empty_line_doc copyrights:
Contributors
Section titled “Contributors”By Commit Statistics
Section titled “By Commit Statistics”Top contributors by DevScore(1), authored commits(2) and lines added/removed(3)
| # | Name | DevScore | Commits | Lines++ | Lines— |
|---|---|---|---|---|---|
| 1. | Vlad Paiu (@vladpaiu) | 32 | 10 | 1155 | 693 |
| 2. | Bogdan-Andrei Iancu (@bogdan-iancu) | 14 | 12 | 40 | 46 |
| 3. | Anca Vamanu | 14 | 5 | 750 | 65 |
| 4. | Andrei Dragus | 10 | 4 | 183 | 182 |
| 5. | Stefan Darius (@dariusstefan) | 8 | 5 | 154 | 11 |
| 6. | Liviu Chircu (@liviuchircu) | 7 | 4 | 42 | 84 |
| 7. | Razvan Crainea (@razvancrainea) | 4 | 2 | 6 | 7 |
| 8. | Dusan Klinec (@ph4r05) | 3 | 1 | 4 | 4 |
| 9. | Ryan Bullock (@rrb3942) | 3 | 1 | 3 | 5 |
| 10. | Julián Moreno Patiño | 3 | 1 | 1 | 1 |
(1) DevScore = author_commits + author_lines_added / (project_lines_added / project_commits) + author_lines_deleted / (project_lines_deleted / project_commits)
(2) including any documentation-related commits, excluding merge commits
(3) ignoring whitespace edits, renamed files and auto-generated files
By Commit Activity
Section titled “By Commit Activity”| # | Name | Commit Activity |
|---|---|---|
| 1. | Stefan Darius (@dariusstefan) | Jun 2026 - Jul 2026 |
| 2. | Razvan Crainea (@razvancrainea) | Aug 2015 - Jun 2026 |
| 3. | Bogdan-Andrei Iancu (@bogdan-iancu) | Jan 2009 - Aug 2018 |
| 4. | Liviu Chircu (@liviuchircu) | Mar 2014 - Jun 2018 |
| 5. | Julián Moreno Patiño | Feb 2016 - Feb 2016 |
| 6. | Dusan Klinec (@ph4r05) | Dec 2015 - Dec 2015 |
| 7. | Ryan Bullock (@rrb3942) | Jan 2014 - Jan 2014 |
| 8. | Vlad Paiu (@vladpaiu) | Oct 2011 - Nov 2013 |
| 9. | Andrei Dragus | Jul 2009 - Jul 2009 |
| 10. | Anca Vamanu | Jan 2009 - Mar 2009 |
(1) including any documentation-related commits, excluding merge commits
Documentation
Section titled “Documentation”Contributors
Section titled “Contributors”Last edited by: Razvan Crainea (@razvancrainea), Bogdan-Andrei Iancu (@bogdan-iancu), Liviu Chircu (@liviuchircu), Vlad Paiu (@vladpaiu), Andrei Dragus, Anca Vamanu.
License
Section titled “License”All documentation files (i.e. .md extension) are licensed under the Creative Common License 4.0