integreat-io / integreat-transporter-redis

Redis adapter for Integreat
Other
0 stars 1 forks source link

Implement pattern for DELETE dispatches #31

Open GoodGuyGoose opened 1 year ago

GoodGuyGoose commented 1 year ago

Implement pattern in DELETE to remove several items based on a pattern for the id. E.g:

p = dispatch({ type: 'DELETE', payload: { type: 'value', pattern: "pervious-stock:508-*"}}).then(ret => data = ret.data, console.error) // removes all item with an id starting with "pervious-stock:508-"