Thursday, 14 November 2013

[dcphp-dev] Re: APC



On Tuesday, November 12, 2013 11:16:57 AM UTC-5, jtracy717 wrote:
Hey all,

I'm building an API for an in-house PHP application, and I find myself checking permissions for an API key at every request. In order to avoid a database access on every request, I would like to cache keys and their corresponding privileges in shared memory. PECL APC seems like the easiest and best way to do this. But I just wanted to check with the list to see if I am missing and potential pitfalls or preferable solutions.

Thanks,
Jim Tracy

Hi Jim,

If you're using mysql 5.6, take a look at the new InnoDB memcached integration.

http://dev.mysql.com/doc/refman/5.6/en/innodb-memcached.html

With it you can avoid the complexities of having to manage the state of the data within memcached and use mysql in the normal way while reaping the benefits of memcached.

Josh

--
You received this message because you are subscribed to the Google
Group: "Washington, DC PHP Developers Group" - http://www.dcphp.net
To post, send email to washington-dcphp-group@googlegroups.com
To unsubscribe, send email to washington-dcphp-group+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/washington-dcphp-group?hl=en
---
You received this message because you are subscribed to the Google Groups "Washington, DC PHP Developers Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to washington-dcphp-group+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 comments:

Post a Comment