Redis is a very advance caching system for Magento.  Mebsites has pre-installed and configured Redish into all its Magento performance based servers with cPanel.  It does require a little configuration to activate and we have a basic outline of this config below.

1. Install this module git://github.com/colinmollenhour/Zend_Cache_Backend_Redis.git
2. Edit app/etc/local.xml to configure

Based on this article we have turned off cache disk :

HTML Code:
<cache>
    <backend>Zend_Cache_Backend_Redis</backend>
    <slow_backend>database</slow_backend>
    <slow_backend_store_data>0</slow_backend_store_data>
    <auto_refresh_fast_cache>0</auto_refresh_fast_cache>
    <backend_options>
        <server>127.0.0.1</server>
        <port>6379</port>
        <database>database</database>
        <use_redisent>0</use_redisent>  <!-- 0 for phpredis, 1 for redisent -->
        <automatic_cleaning_factor>20000</automatic_cleaning_factor> <!-- optional, 20000 is the default, 0 disables auto clean -->
    </backend_options>
</cache>
To check if everything works fine you can use redis-cli :

Code:
flexishore@virtualbox:~$ redis-cli
redis 120.0.01:6379> select database
OK
redis 127.0.0.1:6379> keys *
   1) "zc:d:97a_REC_0000000510"
   2) "zc:d:97a_REC_0000000511"
   3) "zc:d:97a_REC_0000001240"
   4) "zc:d:97a_REC_0000000512"
   .......
As you can see, there are a lot of cache indexes in Redis database.

Source code : link
Benchmark class : benchmark.php

View more threads in the same category: