Generation of antigen-specific memory B cells to viral infection and vaccination