---
lang: en
title: 'API docs: repository.kvconnector'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
permalink: /doc/en/lb4/apidocs.repository.kvconnector.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/repository](./repository.md) &gt; [KVConnector](./repository.kvconnector.md)

## KVConnector interface

Key/Value operations for connector implementations

<b>Signature:</b>

```typescript
export interface KVConnector<T extends Entity> extends Connector 
```

## Methods

|  Method | Description |
|  --- | --- |
|  [delete(modelClass, key, options)](./repository.kvconnector.delete.md) | Delete an entry by key |
|  [deleteAll(modelClass, options)](./repository.kvconnector.deleteall.md) | Delete all entries |
|  [expire(modelClass, key, ttl, options)](./repository.kvconnector.expire.md) | Set up ttl for an entry by key |
|  [get(modelClass, key, options)](./repository.kvconnector.get.md) | Get an entry by key |
|  [iterateKeys(modelClass, filter, options)](./repository.kvconnector.iteratekeys.md) | Get an Iterator for matching keys |
|  [keys(modelClass, options)](./repository.kvconnector.keys.md) | Fetch all keys |
|  [set(modelClass, key, value, options)](./repository.kvconnector.set.md) | Set an entry with key/value |
|  [ttl(modelClass, key, ttl, options)](./repository.kvconnector.ttl.md) | Get ttl for an entry by key |


