@loopback/docs
Version:
Documentation for LoopBack 4
38 lines (24 loc) • 941 B
Markdown
---
lang: en
title: 'API docs: repository.kvconnector.get'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
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