Building a short term analog memory. Would this work?
What you are building is a sample and hold circuit.  It's at the front-end of many (most?) ADCs.

Sample and hold - WikiPedia article

To make it a "memory" you basically have to balance your refresh of the value in the capacitor vs. the size of the capacitor.

Dynamic random-access memory - WikiPedia article