Dart - kv.get()
Get a value from a key value store.
import 'package:nitric_sdk/nitric.dart';final profiles = Nitric.kv("profiles").allow([KeyValueStorePermission.get,]);final profile = await profiles.get('profile-1a2b3c');
Parameters
- Name
key
- Required
- Required
- Type
- String
- Description
The key that references the key value pair that should be retrieved.
Examples
Get a key value pair
import 'package:nitric_sdk/nitric.dart';final profiles = Nitric.kv("profiles").allow([KeyValueStorePermission.get,]);final profile = await profiles.get('profile-1a2b3c');
Last updated on Nov 14, 2024