parent
930724f9de
commit
6e1ae7b242
1 changed files with 2 additions and 2 deletions
|
@ -84,8 +84,8 @@ export class RoleService implements OnApplicationShutdown {
|
||||||
) {
|
) {
|
||||||
//this.onMessage = this.onMessage.bind(this);
|
//this.onMessage = this.onMessage.bind(this);
|
||||||
|
|
||||||
this.rolesCache = new MemorySingleCache<Role[]>(Infinity);
|
this.rolesCache = new MemorySingleCache<Role[]>(1000 * 60 * 60 * 1);
|
||||||
this.roleAssignmentByUserIdCache = new MemoryKVCache<RoleAssignment[]>(Infinity);
|
this.roleAssignmentByUserIdCache = new MemoryKVCache<RoleAssignment[]>(1000 * 60 * 60 * 1);
|
||||||
|
|
||||||
this.redisForPubsub.on('message', this.onMessage);
|
this.redisForPubsub.on('message', this.onMessage);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue