Welcome Guest, Not a member yet? Register   Sign In
codeigniter-memcache - a library/wrapper for memcached
#1

[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 Wink

happy hacking.
#2

[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..
#3

[eluser]Philipp GĂ©rard[/eluser]
Take a look at the functions "set" and "get" in the class. Self-explanatory...
#4

[eluser]mackski[/eluser]
replace "MEMCACHE_SERVER" with "MEMCACHE_HOST" in the config to get this library working.




Theme © iAndrew 2016 - Forum software by © MyBB