mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-09 19:13:08 +00:00
108915: Always invalidate all followLinks when invalidating linked cached object
This commit is contained in:
31
src/app/shared/testing/object-cache-service.stub.ts
Normal file
31
src/app/shared/testing/object-cache-service.stub.ts
Normal file
@@ -0,0 +1,31 @@
|
||||
import { Observable, of as observableOf } from 'rxjs';
|
||||
import { CacheableObject } from '../../core/cache/cacheable-object.model';
|
||||
import { ObjectCacheEntry } from '../../core/cache/object-cache.reducer';
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-empty-function */
|
||||
/**
|
||||
* Stub class of {@link ObjectCacheService}
|
||||
*/
|
||||
export class ObjectCacheServiceStub {
|
||||
|
||||
add(_object: CacheableObject, _msToLive: number, _requestUUID: string, _alternativeLink?: string): void {
|
||||
}
|
||||
|
||||
remove(_href: string): void {
|
||||
}
|
||||
|
||||
getByHref(_href: string): Observable<ObjectCacheEntry> {
|
||||
return observableOf(undefined);
|
||||
}
|
||||
|
||||
hasByHref$(_href: string): Observable<boolean> {
|
||||
return observableOf(false);
|
||||
}
|
||||
|
||||
addDependency(_href$: string | Observable<string>, _dependsOnHref$: string | Observable<string>): void {
|
||||
}
|
||||
|
||||
removeDependents(_href: string): void {
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user