redis support (credits to zlu)