Are you thinking of a rice cooker?
Can get them super duper cheap in argos, they are incredible. Put your rice in, turn it on, leave and it'll cook and warm for you.
I used to put loads of things in my (housemate's rice cooker....) and just let it cook like a slow cooker lol.