Skip to content

Instantly share code, notes, and snippets.

@jhartman86
Created January 29, 2015 18:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jhartman86/ab1d7100cdee3dc520cf to your computer and use it in GitHub Desktop.
Save jhartman86/ab1d7100cdee3dc520cf to your computer and use it in GitHub Desktop.
Swap In Redis as the cache store
<?php
return array(
'debug' => array(
'detail' => 'debug'
),
'cache' => array(
'levels' => array(
'expensive' => array(
'drivers' => array(
array(
'class' => '\Stash\Driver\Redis',
'options' => array(
'servers' => array(
array(
'server' => $_SERVER['CACHE1_HOST'],
'port' => $_SERVER['CACHE1_PORT']
)
)
)
)
)
),
'object' => array(
'drivers' => array(
array(
'class' => '\Stash\Driver\Redis',
'options' => array(
'servers' => array(
array(
'server' => $_SERVER['CACHE1_HOST'],
'port' => $_SERVER['CACHE1_PORT']
)
)
)
)
)
)
)
)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment