# Nginx memcache or pecl memcache?

**URL:** <https://www.ruby-forum.com/t/nginx-memcache-or-pecl-memcache/199096>\
**Category:** NGINX\
**Created:** [November 14, 2010, 9:08pm UTC](https://www.ruby-forum.com/t/nginx-memcache-or-pecl-memcache/199096 "2010-11-14T21:08:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![okkezSS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/85f322/32.png) [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Post date:** [November 14, 2010, 9:08pm UTC](https://www.ruby-forum.com/t/nginx-memcache-or-pecl-memcache/199096/1 "2010-11-14T21:08:43Z")

</div>

Which I should use? Memcache from nginx or memcache from pecl? Maybe  
both? What benefits have using memcache via nginx opposite do memcache  
via php?

Posted at Nginx Forum:

> **[nginx memcache or pecl memcache?](https://forum.nginx.org/read.php?2,150755,150755#msg-150755)**
>
> Which I should use? Memcache from nginx or memcache from pecl? Maybe both? What benefits have using memcache via nginx opposite do memcache via php?

---

<div class="post-metadata">

**Author:** ![dong](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/3e96dc/32.png) [@dong](https://www.ruby-forum.com/u/dong)\
**Post date:** [November 14, 2010, 9:35pm UTC](https://www.ruby-forum.com/t/nginx-memcache-or-pecl-memcache/199096/2 "2010-11-14T21:35:07Z")

</div>

That’s comparing apples and oranges really. One is at the webserver  
level and one is at the sapi level.

You’ll have greater control and flexibility with php, however doing it  
at the webserver level could save you from needing to execute php.
