@shanzhai/ephemeral-unkeyed-store

An unkeyed Shanzhai store which holds data in memory until the application closes.

Usage no npm install needed!

<script type="module">
  import shanzhaiEphemeralUnkeyedStore from 'https://cdn.skypack.dev/@shanzhai/ephemeral-unkeyed-store';
</script>

README

@shanzhai/ephemeral-unkeyed-store Continuous Integration License FOSSA Status Renovate enabled npm npm type definitions

An unkeyed Shanzhai store which holds data in memory until the application closes.

Usage

This is an implementation of UnkeyedStore, and can be used anywhere requiring one.

const store = new EphemeralKeyedStore<number>(`Test Name`);
store.set(1);
store.delete();
store.set(2);
store.get(); // 2.

All information is stored in-memory, and will be lost when the application is closed.

Dependencies

This package has no runtime dependencies.

Peer Dependencies

This package has no runtime peer dependencies (it does not expect any other packages to be installed alongside itself).

License

FOSSA Status