mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-12 20:43:08 +00:00
More refactoring + reusing the server's store on the client
This commit is contained in:
5
src/app/core/cache/object-cache.actions.ts
vendored
5
src/app/core/cache/object-cache.actions.ts
vendored
@@ -11,11 +11,12 @@ export class AddToObjectCacheAction implements Action {
|
||||
type = ObjectCacheActionTypes.ADD;
|
||||
payload: {
|
||||
objectToCache: CacheableObject;
|
||||
timeAdded: number;
|
||||
msToLive: number;
|
||||
};
|
||||
|
||||
constructor(objectToCache: CacheableObject, msToLive: number) {
|
||||
this.payload = { objectToCache, msToLive };
|
||||
constructor(objectToCache: CacheableObject, timeAdded: number, msToLive: number) {
|
||||
this.payload = { objectToCache, timeAdded, msToLive };
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user