Answer the question
In order to leave comments, you need to log in
Closed bases in memcached, how?
There is a certain SaaS solution - a cluster of our identical apps. Users can customize the functionality by overlaying php files with their own. The data is stored in MySQL, respectively, the login / password / database is different for everyone, while everything is secure, but slow.
It is necessary to configure cache storage in memcach(e|ed), but in such a way that some apps cannot see/change someone else's cache. The solution with different memcache ports is not suitable, there are too many.
The very first thing that comes to mind is working through a single API (proxy pattern), which always checks the conditional access parameters. The simplest kind is the secret prefixes of the keys (say sha1).
What would you choose/suggest? :)
Answer the question
In order to leave comments, you need to log in
I met with such a problem, I solved it by adding the so-called salt key to the names , which was a unique identifier for the entire program.
$memcache->set($prog_sol.$name,
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question