@loopback/docs
Version:
Documentation for LoopBack 4
39 lines (25 loc) • 1.03 kB
Markdown
lang: en
title: 'API docs: repository.kvconnector.get'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
editurl: https://github.com/strongloop/loopback-next/tree/master/packages/repository
permalink: /doc/en/lb4/apidocs.repository.kvconnector.get.html
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/repository](./repository.md) > [KVConnector](./repository.kvconnector.md) > [get](./repository.kvconnector.get.md)
## KVConnector.get() method
Get an entry by key
<b>Signature:</b>
```typescript
get(modelClass: Class<Entity>, key: string, options?: Options): Promise<T>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| modelClass | <code>Class<Entity></code> | Model class |
| key | <code>string</code> | Key for the entry |
| options | <code>Options</code> | Options for the operation |
<b>Returns:</b>
`Promise<T>`
A promise of the entry found for the key