move redis related class from web to core