refactor renrenCache to meet the requirement of renrenParser. unittest refactored, too.