Closed exts closed 8 years ago
@exts I hope you don't mind my asking: have you had a look at Pool::setNamespace()
? Or rather: how is your proposed setPrefix()
different from setNamespace()
?
I'm using setNamespace()
in a setup where multiple virtual hosts point to the same physical directory serving the same application on different subdomains and setting the namespace equal to the subdomain works just fine.
Did not know that existed, thanks.
So I was thinking , wouldn't it be nice to add a prefix to every getItem call to almost namespace off different domains using the same memcache server rather than setting up a few more memcache servers for minor caching? Now this could be done by simply extending the library, but why not just make it an official feature?
So I was thinking if we could add a
setPrefix()
method which takes one parameter allowing only[a-zA-Z0-9_-.]
characters which gets prepended to everygetItem
,getData
andsetData
key