Python - kv.get()
Get a value from a key value store.
from nitric.resources import kvfrom nitric.application import Nitricprofiles = kv('profiles').allow('get')profile = await profiles.get('profile-1a2b3c')Nitric.run()
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
from nitric.resources import kvfrom nitric.application import Nitricprofiles = kv('profiles').allow('get')profile = await profiles.get('profile-1a2b3c')Nitric.run()
Last updated on Dec 19, 2024