Skip to content

Instantly share code, notes, and snippets.

@colinmollenhour
Created August 26, 2011 00:17
Show Gist options
  • Save colinmollenhour/1172386 to your computer and use it in GitHub Desktop.
Save colinmollenhour/1172386 to your computer and use it in GitHub Desktop.
Redis cache config example
<!-- this is a child node of config/global -->
<cache>
<backend>Zend_Cache_Backend_Redis</backend>
<backend_options>
<server>127.0.0.1</server>
<port>6379</port>
<database>2</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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment