Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request for providing cache policies functions #49

Open
yzaslavsky opened this issue Jun 19, 2015 · 0 comments
Open

Request for providing cache policies functions #49

yzaslavsky opened this issue Jun 19, 2015 · 0 comments

Comments

@yzaslavsky
Copy link

Hi,
I think it would be cool if we can provide to config.js a cache policy function that can be
provided by users of npm_lazy.

What I am thinking is of something like having the ability to add a "require" line at the top of config.js that will point to a file which will be able to contain a cache policy function.

Then server.js will use this cache policy function for caching.

For example, we can use this in order to define "whitelist" or "blacklist" (for example, names of modules that will be always fetched from the public npm repo , no matter what).

We should also consider may having some cahce loader function that will be able to store the cache on some other secondary storage.

I will be more than glad to assist and provide some code, if you're interested.

Cheers,
Yair

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant