Cache branch and tag names as Redis sets
See
https://gitlab.com/gitlab-org/gitlab-ce/issues/64251#note_189299174
for more context.