Bad experiences haunt me too, but seem to stop shortly after I believe I have nothing left to learn from them.
I've noticed that telling stories or writing them down burns in memories. I'd like to journal more. My main motivation for that would not be as a memory aid, though -- it just feels healthy.
For a time in my life I was quite angry. I meditated and journaled heavily during that time, and that really was transformative. Among other changes, I became able to recognize an unhelpful habit -- like fuming over something someone had done -- and staring its unhelpfulness in the face for long enough that the urge to do it went away. Or at least, until something else seemed more helpful, at which point I would switch to that.