Default Cache for non wp site

Hi,

I’d like to ask, how can I enable caching for non wp site? I understand that if it is a wordpress site, I could use a command like --wpredis or that kind of stuff… But let say, I want to use memcache for a non wordpress site, how can I do that?

I tried to wonder around on search by google but unable to find a suitable answer.

Cheers