use sharedArrayBuffer to store data
npm install shared-array-buffer-store
const SharedArrayBufferStore = require('shared-array-buffer-store');
const instance = new SharedArrayBufferStore(options);
//set data
instance.set('name', 'value');
//get data
instance.get('name');
//delete key
instance.delete('name');
// get all keys
const keys = instance.keys();
keyBuffer
{sharedArrayBuffer} store key bufferkeyBufferLength
{Number} store key buffer size, default is1024 * 1024 * 5
valueBuffer
{sharedArrayBuffer} store value buffervalueBufferLength
{Number} store key buffer size, default is1024 * 1024 * 100
reservedLength
{Number} reserved size in key buffer and value buffer, default is 1encrypt
encode(string, encoding)
decode(buffer, encoding)