@sourceloop/cache / Exports / ICachedRepository
Interface: ICachedRepository<E, ID, R>¶
Type parameters¶
| Name | Type |
|---|---|
E |
extends Entity |
ID |
ID |
R |
extends Object |
Table of contents¶
Methods¶
Methods¶
find¶
▸ find(filter?, options?): Promise<E & R[]>
Parameters¶
| Name | Type |
|---|---|
filter? |
Filter<E> |
options? |
ICachedMethodOptions |
Returns¶
Promise<E & R[]>
Defined in¶
findById¶
▸ findById(id, filter?, options?): Promise<E & R>
Parameters¶
| Name | Type |
|---|---|
id |
ID |
filter? |
Filter<E> |
options? |
ICachedMethodOptions |
Returns¶
Promise<E & R>
Defined in¶
findOne¶
▸ findOne(filter?, options?): Promise<null | E & R>
Parameters¶
| Name | Type |
|---|---|
filter? |
Filter<E> |
options? |
ICachedMethodOptions |
Returns¶
Promise<null | E & R>