How to use memcache in php code

73 views
Skip to first unread message

Venkada Ramanujam

unread,
Jul 9, 2014, 4:24:22 AM7/9/14
to memc...@googlegroups.com
Hi to all,

       I have working on small project in php running in localhost. I want to use memcache technique. I don't have any idea about memcache.
Could anyone please tell me how to start work with memcache ?. It is better, if someone give some example codes and integration procedure.

Thanks,
Venkadaramanujam

Ryan McElroy

unread,
Jul 9, 2014, 4:40:16 AM7/9/14
to memc...@googlegroups.com
First you need to install a memcache library for PHP. Instruction for one choice are here: http://www.php.net/manual/en/memcache.installation.php

Next, I suggest you start with the example on the PHP website: http://www.php.net/manual/en/memcache.examples-overview.php

~Ryan



--

---
You received this message because you are subscribed to the Google Groups "memcached" group.
To unsubscribe from this group and stop receiving emails from it, send an email to memcached+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Venkada Ramanujam

unread,
Jul 9, 2014, 4:50:28 AM7/9/14
to memc...@googlegroups.com
Thanks Ryan.

Thanks,
Venkadaramanujam




--

---
You received this message because you are subscribed to a topic in the Google Groups "memcached" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/memcached/AJ5mS2SU6Lk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to memcached+...@googlegroups.com.

Denis Samoylov

unread,
Jul 10, 2014, 10:00:59 PM7/10/14
to memc...@googlegroups.com
(this is what happens when FB guys with their superior mcrouter suggest something :) - no office, just joke)

i would recommend to use Memcached client in PECL (not Memcache). The one with "d" is based on libmemcached and much better (we run both of the in parallel for long time :) )

here is the direct link
it has examples and installation instructions.

Ryan McElroy

unread,
Jul 10, 2014, 11:06:47 PM7/10/14
to memc...@googlegroups.com
Thanks for pointing to the better implementation :)

~Ryan (mobile)
Reply all
Reply to author
Forward
0 new messages