@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
39 lines (25 loc) • 1.11 kB
Markdown
---
lang: en
title: 'API docs: repository.kvconnector.get'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/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 | [Class](./repository.class.md)<!-- --><[Entity](./repository.entity.md)<!-- -->> | Model class |
| key | string | Key for the entry |
| options | [Options](./repository.options.md) | Options for the operation |
<b>Returns:</b>
Promise<T>
A promise of the entry found for the key