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

feat(storage): add redis storage #63

Merged
merged 1 commit into from
Aug 4, 2019
Merged

feat(storage): add redis storage #63

merged 1 commit into from
Aug 4, 2019

Conversation

eladav
Copy link
Contributor

@eladav eladav commented Jul 23, 2019

@eladav eladav requested a review from EladBezalel July 23, 2019 08:07
Maybe
} from '@dynamico/driver';

export class CompositeStorage implements Storage {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it's a composition storage

Suggested change
export class CompositeStorage implements Storage {
export class CompositionStorage implements Storage {

ComponentTree,
ComponentGetter,
Maybe
} from '@dynamico/driver';
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are we getting these types out of the driver and not the common types?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah it's kind of weird... Not sure what's the correct structure here is but I wanted some package to export the types and not publish a @types/dynamico package. I'll play with it some more to find the best setup...

saveComponent(component: Component, files: File[]): Promise<void>;
}

export type Storage = IndexStorage & ComponentsStorage;
Copy link
Contributor

Choose a reason for hiding this comment

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

beautiful

@eladav eladav force-pushed the add-redis-storage branch 4 times, most recently from e196187 to 61a5229 Compare July 29, 2019 08:19
@eladav eladav changed the title [WIP]: feat(storage): add redis storage feat(storage): add redis storage Jul 29, 2019
@eladav eladav force-pushed the add-redis-storage branch 3 times, most recently from c866ba6 to e21d4f3 Compare July 30, 2019 13:44
* re-organize types
* add composite storage
* tests for redis storage and composition storage
@eladav eladav merged commit ef93a53 into master Aug 4, 2019
@eladav eladav deleted the add-redis-storage branch August 4, 2019 08:59
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.

2 participants