codeigniter-memcache - a library/wrapper for memcached |
[eluser]Unknown[/eluser]
hey guys, memcache is super sexy for caching things in a web application. when i wanted to use ci with memcache, there was no built-in library for it.(there should be more backends for caching, imho.) that's why, i developed a simple wrapper for communicating memcache from codeigniter. plus, it has logging capabilities for get/set/delete actions. anyway, here is the code: http://github.com/egnity/codeigniter-memcache/ i am new to codeigniter so any suggestions/comments are welcome happy hacking.
[eluser]dungdn[/eluser]
Thanks for nice working, But can you show me how to use this library. i've worked with codeigniter for only 3 months, and there are many things i don't know. If i have a search page with a sql query like: select * from tbl_table where a like '% .$a. %'; how can i cache the query or the search results. Thanks alot for your help..
[eluser]Philipp GĂ©rard[/eluser]
Take a look at the functions "set" and "get" in the class. Self-explanatory...
[eluser]mackski[/eluser]
replace "MEMCACHE_SERVER" with "MEMCACHE_HOST" in the config to get this library working. |
Welcome Guest, Not a member yet? Register Sign In |