title: Storing complex data structures in PHP's Shared Memory
body: <p>I've got some complex data structure (objects and stuff) shared among all of my PHP scripts and right now I'm storing that serialized in session. It could boost my server's performance if I didn't have to serialize and unserialize it for each incoming request. This data structure holds application's ACL information so it is the same for all of the application's users, so it's a perfect candidate to be shared among all requests (regardless of which user the request came from).</p>
  
  <p>I googled for <em>PHP Shared Memory</em> and <a href="http://php.net/manual/en/book.shmop.php" rel="nofollow">these functions came up</a>. They are perfect, it's just that they can only hold strings. They are of little use to me if I can't store my data structure as is. I mean if I have to serialize and unserialize my data structure for each request, that's not that much of help.</p>
  
  <p>Does anyone have any shared memory solution for me where I can store my data AS IS?</p>