Page Contents
Home > @loopback/repository > DefaultKeyValueRepository
DefaultKeyValueRepository class
An implementation of KeyValueRepository based on loopback-datasource-juggler
Signature:
export declare class DefaultKeyValueRepository<T extends Model> implements KeyValueRepository<T>
Implements: KeyValueRepository<T>
Constructors
Constructor | Modifiers | Description |
---|---|---|
(constructor)(entityClass, ds) | Construct a KeyValueRepository with a legacy DataSource |
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
kvModelClass | typeof juggler.KeyValueModel | A legacy KeyValueModel class |
Methods
Method | Modifiers | Description |
---|---|---|
delete(key, options) | ||
deleteAll(options) | ||
expire(key, ttl, options) | ||
get(key, options) | ||
keys(filter, options) | ||
set(key, value, options) | ||
toEntity(modelData) | ||
ttl(key, options) |