RequestCacheService docs & tests

This commit is contained in:
Art Lowel
2017-03-14 14:36:03 +01:00
parent eaaf12d645
commit 34d9aece7e
4 changed files with 217 additions and 3 deletions

View File

@@ -51,6 +51,7 @@ export class ObjectCacheService {
* @param type
* The type of the object to get
* @return Observable<T>
* An observable of the requested object
*/
get<T extends CacheableObject>(uuid: string, type: GenericConstructor<T>): Observable<T> {
return this.store.select<ObjectCacheEntry>('core', 'cache', 'object', uuid)