Skip to content

Instantly share code, notes, and snippets.

@ascsystems
Created December 21, 2013 20:23
Show Gist options
  • Select an option

  • Save ascsystems/8074455 to your computer and use it in GitHub Desktop.

Select an option

Save ascsystems/8074455 to your computer and use it in GitHub Desktop.
<?php
$cache = $this->sm->get('cache');
$cache->replaceItem('mfgs', array('TYS','TEST','Test2'));
var_dump($cache->getItem('mfgs'));
?>
Gives me string(5) "Array"
I'm using this: http://framework.zend.com/apidoc/2.2/classes/Zend.Cache.Storage.Adapter.Redis.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment