How can we reboot IOS device (Ipad/Ipod) through appium

Hi,

is there a way i can reboot IOS device (Ipad/Ipod) through appium.

The reason this is required is we have seen in past when the continuous execution goes on the device tends to get slower hence restarting used to help.

Also is there a way we can clear device cache through appium.

There are capabilities that you can use to clear the cache, try to use noReset and fullReset capabilities, they are boolean values.
Search here for this capabilities: http://appium.io/slate/en/master/?java#appium-server-capabilities