Skip to content

@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

types.ts:94


findById

findById(id, filter?, options?): Promise<E & R>

Parameters

Name Type
id ID
filter? Filter<E>
options? ICachedMethodOptions

Returns

Promise<E & R>

Defined in

types.ts:95


findOne

findOne(filter?, options?): Promise<null | E & R>

Parameters

Name Type
filter? Filter<E>
options? ICachedMethodOptions

Returns

Promise<null | E & R>

Defined in

types.ts:100