This module emulates the cachedb interface over a regular SQL backend like MySQL.
It can be used with the dialog module to get the counting in a table, for instance.
Thank you very much for the contribution.
Slightly edited the patch and committed it to OpenSIPS trunk. It will also be present in the next 1.9 release.