-
-
Notifications
You must be signed in to change notification settings - Fork 765
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
Add in_memory storage option #2356
base: master
Are you sure you want to change the base?
Conversation
src/headless/core.js
Outdated
@@ -998,6 +998,9 @@ function initPersistentStorage () { | |||
} else if (_converse.api.settings.get("persistent_store") === 'IndexedDB') { | |||
config['description'] = 'indexedDB instance'; | |||
config['driver'] = [Storage.localForage.INDEXEDDB]; | |||
} else if (_converse.api.settings.get("persistent_store") === '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.
I prefer none
to in_memory
for the config setting value.
It's more semantic because strictly speaking, there is no persistent storage in this case.
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.
Makes sense :)
Thanks @XaviFP. The tests are failing and need to be fixed first. |
Complementary work for conversejs/skeletor#6
Changed git hash to not forget about updating it when it gets merged.
CHANGES.md
document it in
docs/source/configuration.rst
with
make check
or you can run them in the browser by runningmake serve
and then opening
http://localhost:8000/tests.html
.