Skip to content

Instantly share code, notes, and snippets.

@Freeaqingme
Created July 11, 2013 13:44
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 Freeaqingme/5975562 to your computer and use it in GitHub Desktop.
Save Freeaqingme/5975562 to your computer and use it in GitHub Desktop.
<?php
$obj = (object) array('foo' => 'bar');
var_dump(zend_shm_cache_store('myLittleKey', $obj));
var_dump($res = zend_shm_cache_fetch('myLittleKey'));
var_dump(serialize($obj)==serialize($res));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment