move tokentransform to lib/redis