Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Save an array to disk, for push and shift operations.

Notifications You must be signed in to change notification settings

trusk-official/array-to-disk

Repository files navigation

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 amqp messages on disk in case of unexpected crash/reboot of a service while the amqp channel is not available (see amqp connection manager).

About

Save an array to disk, for push and shift operations.

Resources

Stars

Watchers

Forks

Packages

No packages published