-
Notifications
You must be signed in to change notification settings - Fork 5
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
Statebus file_store
option should take a prefix rather than a boolean
#39
Comments
|
Re number 2: right now file_store takes a boolean for whether all state should be stored or not. If you specify +1 to a regex. |
Ok, now you can do: bus = require('statebus').serve({file_store: {prefix: 'savely'}}) Does this solve for you? It's committed and in npm. ac172b6 Here's the full list of options for file_store and their defaults: file_store: {save_delay: 250, filename: 'db', backup_dir: 'backups', prefix: '*'} I guess this should go on the wiki. |
Ok, I've added the server options to the wiki. |
E.g.
I could also see an argument for an array:
Since this is a breaking change I'll let you deal with this.
The text was updated successfully, but these errors were encountered: