Memory-only database

Is it possible to have a memory-only database that never gets written to a disk?

Under Linux I could create a tmpfs in RAM, but not sure it’s possible on Windows