redis pt 2: read cache wiring & event based invalidations
This commit is contained in:
@@ -2,6 +2,7 @@ import { Doll } from '@prisma/client';
|
||||
|
||||
export const UserEvents = {
|
||||
ACTIVE_DOLL_CHANGED: 'user.active-doll.changed',
|
||||
SEARCH_INDEX_INVALIDATED: 'user.search-index.invalidated',
|
||||
} as const;
|
||||
|
||||
export interface UserActiveDollChangedEvent {
|
||||
@@ -9,3 +10,7 @@ export interface UserActiveDollChangedEvent {
|
||||
dollId: string | null;
|
||||
doll: Doll | null;
|
||||
}
|
||||
|
||||
export interface UserSearchIndexInvalidatedEvent {
|
||||
userId?: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user