1.1.0 • Published 6 years ago
@trusk/array-to-disk v1.1.0
array-to-disk
- save an array to disk using the localstorage API
 - restores the array state if initialized on an existing storage
 - ⚠️ this only works for push and shift operations
 - ⚠️ you should not be using multiple array instances on the same storage
 
const array = new DiskArray("/storage/location/path", size);Usecase
- persist a pending list of 
amqpmessages on disk in case of unexpected crash/reboot of a service while theamqpchannel is not available (see amqp connection manager).