title: Using memcache in codeigniter
body: <p>I need to have library that can be used as memcache with my codeigniter. what I need to do is to extract menus from DB on user's role basis and then store the menu in cache. The idea is to show the exact menu to another user if it has the same role(without calling DB). I have a separate view for menus(Header) and includes it on each of my page(view). Here a thing to note is every time a controller is executed when requesting to a new page(view).</p>
  
  <p>I just used a library <a href="https://github.com/tomschlick/memcached-library" rel="nofollow">https://github.com/tomschlick/memcached-library</a> which did not work for me in this scenario. As I call the new page the header view throws an error for not defined get function for memcache (as I am getting data in header through memcache).</p>
  
  <p>Is there any solid library or way to accomplish the task?</p>
  
  <p>Thanks</p>