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

Implemented a Provider structure for Files, Cache, and Database adapters. Added a new memory cache implementation. #291

Closed
wants to merge 14 commits into from

Conversation

gnz00
Copy link

@gnz00 gnz00 commented Feb 8, 2016

No description provided.

@facebook-github-bot
Copy link

@maysale01 updated the pull request.

3 similar comments
@facebook-github-bot
Copy link

@maysale01 updated the pull request.

@facebook-github-bot
Copy link

@maysale01 updated the pull request.

@facebook-github-bot
Copy link

@maysale01 updated the pull request.

@gnz00 gnz00 changed the title Abstracted cache to provider, added a new memory cache Implemented a Provider structure for Files, Cache, and Database adapters. Added a new memory cache implementation. Feb 9, 2016
@facebook-github-bot
Copy link

@maysale01 updated the pull request.

4 similar comments
@facebook-github-bot
Copy link

@maysale01 updated the pull request.

@facebook-github-bot
Copy link

@maysale01 updated the pull request.

@facebook-github-bot
Copy link

@maysale01 updated the pull request.

@facebook-github-bot
Copy link

@maysale01 updated the pull request.

adapter = require(adapter);

// TODO: Figure out a better way to deal with this
if (adapter && adapter.default)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you wanna do here with the default?
Because either default is a function, so it should be the adapter itself, or it's an object and will skip instantiation and options. Question is why specify .default on an adapter as it's guaranteed to be used?

Alexander Mays added 12 commits February 9, 2016 16:49
Signed-off-by: Alexander Mays <[email protected]>
Signed-off-by: Alexander Mays <[email protected]>
…ce the singleton pattern. The correct way is to not use the constructor but rather a 'setup', 'init' or other method.

Signed-off-by: Alexander Mays <[email protected]>
…implementation of the said providers and added a ParseApp class. Needs to be documented.

Signed-off-by: Alexander Mays <[email protected]>
Signed-off-by: Alexander Mays <[email protected]>
Alexander Mays added 2 commits February 9, 2016 16:53
@facebook-github-bot
Copy link

@maysale01 updated the pull request.

@gfosco
Copy link
Contributor

gfosco commented Feb 26, 2016

Trying to do some cleanup here.. I'm going to close this. If you'd like to rebase and squash this down, you can reopen and we'll get it reviewed internally. There is a lot going on here, with 27 files changed, it would be nice if this could be broken up for easier review and understanding.

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

Successfully merging this pull request may close these issues.

4 participants