![]() |
Moving from Zend Memcache - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Moving from Zend Memcache (/showthread.php?tid=35872) |
Moving from Zend Memcache - El Forum - 11-14-2010 [eluser]RaZoR LeGaCy[/eluser] Looking to move from using Zend Framework Memcache but need help with class. I have models that use pre-existing code and need to stay that way. The old code uses Cache::init($lifetime of cache); so I need to keep it this way. Problem is, I cannot get the $_cache variable and the $lifetime variable into the save function. I try $this-> and it says "Using $this when not in object context" and when using $lifetime, is says "Undefined variable: lifetime"; the same for $_cache Code: class Cache What is wrong here? Moving from Zend Memcache - El Forum - 11-14-2010 [eluser]RaZoR LeGaCy[/eluser] Code: function cache(){ Moving from Zend Memcache - El Forum - 11-14-2010 [eluser]RaZoR LeGaCy[/eluser] I changed to APC which is better and much easier to implement. Still would like to know what I did wrong. |