On Sep 24, 2015, at 10:37 AM, Michal Tomaszewski <Michal.Tomaszewski@cca.pl> wrote:
Can you suggest how can I make a custom counter that uses e.g. sql query and redis query in single counter?
You can't do it in a module. The counter module does one thing, and one thing only.
Is there any possibility to include ulang logic into sqlcounter conf, make a redis query and/or combine data?
You need to write the logic yourself, and then combine the counters manually.
Is there a possibility to make queries using different sql pools inside one counter?
No.
I would like to cache some data in redis and reuse it if available. If it is not available - then make a full sql query (long lasting…).
You can cache data in redis, but you need to write the redis queries yourself. Alan DeKok.