1. A method comprising: providing a memory reference code as a memory reference code driver, executing the memory reference code driver in the cache after receiving information of the cache, wherein executing the memory reference code driver in the cache discovers a memory, mapping contents of the cache to the memory, registering the memory reference code driver as a run-time application programmable interface, and executing the memory reference code driver in response to initiating a memory detection feature, wherein executing the memory reference code driver recognizes a hot-plugged memory.