memored icon indicating copy to clipboard operation
memored copied to clipboard

Question about master

Open texels opened this issue 8 years ago • 2 comments

Is there any reason the master cant have access to the cache data (or even the cache itself)? It looks like the cache will return keys and can be cleared via reset(). I was looking to show the cache contents (from an express server running in the master) just for status/debugging, but the best i can do is show the keys. Thanks!

texels avatar Apr 05 '17 15:04 texels

Hi @texels, In a clustered environment, I'm not used to set any logic in the master process. To me, it should only serve as a kind of proxy for its workers. That's why I enforced consuming cache data from the workers.

Let me think about it and come back when I decide if I should make that change.

Thanks.

PaquitoSoft avatar Apr 06 '17 07:04 PaquitoSoft

Hey @texels, I've recently started a project called memshared which works very similarly with memored.

You can access the data from the master process and it should also work with fork, without relying strictly on the cluster module.

endel avatar May 09 '17 18:05 endel