(I may not be completely understanding, but I would still like to ask.)
MemcacheServiceFactory can return an instance of MemcacheService by specifying a namespace.
Can a single application request instances of MemcacheService for multiple namespaces? If so, can the namespace be used as a concept of grouping?
For example, let's say my model has folders and files, and I use folder names as namespaces. I can store cached data for files belonging to a specific folder in a MemcacheService instance with the name of this folder as a namespace. And when I delete the folder, I just delete all the entries in this MemcacheService instance without affecting any other folders or files.
Thanks Keyur
source
share