Page Contents

Home > @loopback/repository > KVConnector

KVConnector interface

Key/Value operations for connector implementations

Signature:

export interface KVConnector<T extends Entity> extends Connector 

Methods

Method Description
delete(modelClass, key, options) Delete an entry by key
deleteAll(modelClass, options) Delete all entries
expire(modelClass, key, ttl, options) Set up ttl for an entry by key
get(modelClass, key, options) Get an entry by key
iterateKeys(modelClass, filter, options) Get an Iterator for matching keys
keys(modelClass, options) Fetch all keys
set(modelClass, key, value, options) Set an entry with key/value
ttl(modelClass, key, ttl, options) Get ttl for an entry by key