D
D
denver2011-09-12 08:44:51
memcached
denver, 2011-09-12 08:44:51

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

3 answer(s)
A
aktuba, 2011-09-12
@aktuba

give your memcache api and use salt when working with keys.

I
Ivan Garbuz, 2011-09-12
@garbuzivan

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,

R
rPman, 2011-09-12
@rPman

In my mind, a simple authentication was recently screwed to memcached, but I didn’t find anything about it right off the bat, maybe it will do?
code.google.com/p/memcached/wiki/ReleaseNotes144

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question