Clean cache

hi guys,

For the performance testing I’m doing, I need to clean cache after
each test. Is there any way to clean cache using ruby? Thanks.

memory cache? disk cache? database cache? dns cache? routing cache?

Sorry I mean memory cache. I’ve already already db cache. Thanks.