How to set a cache adapter

How to set a cache adapter, example with pac and memcached