Yii2 documentation suggests the following configuration which is applicable for memCache.
'components' => [
'cache' => [
'class' => 'yii\caching\MemCache',
'servers' => [
[
'host' => 'server1',
'port' => 11211,
'weight' => 100,
],
],
],
]
- How can i configure the component to use op_cache?
- Where can i find the 'host','port','weight' information on a local WAMP server?
Thanks