I don't know if cows have good memories or not. I don't see why they wouldn't--they have plenty of cranial capacity, and not much to do with large brains except controlling their various stomachs and remembering to eat and sleep and walk around once in a while.
Today there are about a dozen in the back pasture, periodically disturbing the dogs, who are out in their corral, when they get to close to the fence. The first time that happened, I went out to persuade them away from the fence, and saw that one of them was the youngster we've named Moofus, the cow I had to "save" when he was just a tiny calf and was trapped in the pasture, separated from his mother. He was with another, older cow, but that one took off as I neared the fence. Moofus, though, stayed put, letting me get close and chat with him for a while about his cow life. I don't know if he really remembers me, but he isn't as skittish about me as the others are. And clearly they all remember where the open gate to our pasture is, since they come back on a semi-occasional basis.
Here's Moofus today, still clearly young but much bigger than the little beef I first met.
And here's a creepy looking older member of the herd I have named Ghostface Killa, for obvious reasons.