2.5.0 (2022-10-20)
✨ Features
Example:
const storage = new MMKV()
// Set to storage
const buffer = new Uint8Array([255, 100, 8, 5])
storage.set('someToken', buffer)
// Get from storage
const buffer = storage.getBuffer('someToken')
console.log(buffer) // [255, 100, 8, 5]
// Fun Fact:
// You can read every value as a Buffer:
storage.set('someString', 'Hey!');
const buffer = storage.getBuffer('someString')
console.log(buffer); // [72, 101, 121, 33]