mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-12 12:33:07 +00:00
RequestCacheService docs & tests
This commit is contained in:
1
src/app/core/cache/object-cache.service.ts
vendored
1
src/app/core/cache/object-cache.service.ts
vendored
@@ -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)
|
||||
|
Reference in New Issue
Block a user