-
Notifications
You must be signed in to change notification settings - Fork 927
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
Conversation
import { User } from '../../model/user'; | ||
import { testUser } from '../../../test/mock_auth'; | ||
|
||
describe('core/persistence/in_memory', () => { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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> { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comment above.
No description provided.