Redis for cache.

@serbanovvostrov - you need to open main-custom.php file from 'path_to_your_app'/apps/common/config/ and insert:
Code:
'components' => array(

    // ADD REDIS FOR CACHE/MUTEX START
    'cache' => array(
        'class' => 'common.components.cache.RedisCache',
    ),
    'mutex' => array(
        'class' => 'common.components.mutex.RedisMutex',
    ),
    // ADD REDIS FOR CACHE/MUTEX END
),
 
where do I set the redis host?

There you go:
PHP:
// ADD REDIS FOR CACHE/MUTEX START
    'cache' => array(
        'class' => 'common.components.cache.RedisCache',
        'hostname' => '...',
        'username' => '...',
        'password' => '...',
        'port'       => '...',
    ),
    'mutex' => array(
        'class' => 'common.components.mutex.RedisMutex',
        'hostname' => '...',
        'username' => '...',
        'password' => '...',
        'port'       => '...',
    ),
    // ADD REDIS FOR CACHE/MUTEX END
 
Back
Top