framework redis mongo util