MOD: add some codes for redis counter