Skip to content

Add persistence layer: index db, in memory, and browser{local, session} #2908

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

Merged
merged 12 commits into from
Apr 16, 2020

Conversation

sam-gc
Copy link
Contributor

@sam-gc sam-gc commented Apr 14, 2020

No description provided.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Apr 14, 2020

Binary Size Report

Affected SDKs

No changes between base commit (18c5312) and head commit (6ca0b7a).

Test Logs

@sam-gc sam-gc marked this pull request as ready for review April 14, 2020 22:32
import { User } from '../../model/user';
import { testUser } from '../../../test/mock_auth';

describe('core/persistence/in_memory', () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

should we standardize on how we name these?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, how would you like to standardize them? I don't really care which way we end up choosing

Copy link
Contributor

Choose a reason for hiding this comment

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

me neither, is there a pattern that the other packages follow? @Feiyang1

this.storage[key] = value;
}

async get<T extends PersistenceValue>(key: string): Promise<T | null> {
Copy link
Contributor

Choose a reason for hiding this comment

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

do you have a version of this one with instantiator?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

See comment above.

@firebase firebase locked and limited conversation to collaborators May 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants