
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
@lukso/controllerapps-sharedlogic-mmkv-adapter
Advanced tools
**MMKVAdapter** is a lightweight implementation of the `StorageAdapter` using [react-native-mmkv](https://github.com/mrousavy/react-native-mmkv). It plugs into the SchemaVersionedStorageWrapper, allowing you to have all the advantages of the wrapper with
MMKVAdapter is a lightweight implementation of the StorageAdapter
using react-native-mmkv. It plugs into the SchemaVersionedStorageWrapper, allowing you to have all the advantages of the wrapper with MMKV as the underlying storage mechanism.
For full details on schema migrations and the overall API, please refer to the SchemaVersionedStorageWrapper README.
StorageAdapter
using react-native-mmkv
yarn add @lukso/controllerapps-sharedlogic-mmkv-adapter
Ensure you have set up MMKV properly in your React Native project. Follow the installation guide.
The MMKVAdapter
is used internally by the higher-level MMKVStore
(which wraps SchemaVersionedStorageWrapper). For example:
import { MMKVConfiguration } from 'react-native-mmkv';
import { MMKVAdapter } from '@lukso/controllerapps-sharedlogic-mmkv-adapter';
const configuration: MMKVConfiguration = {...}
const adapter = new MMKVAdapter(configuration);
(async () => {
const store = await SchemaVersionedStorageWrapper.load(
adapter,
'profiles',
migrations
)
await store.put({ name: 'Alice', age: 28 });
})();
FAQs
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.