mirror of
https://github.com/outline/outline.git
synced 2026-11-25 15:15:15 +03:00
refactor
This commit is contained in:
11 files changed
+96
-93
No files matched your search
@@ -22,6 +22,17 @@ export class RedisPrefixHelper {
|
||||
return `cd:${collectionId}`;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets key against which the collaborators of a multiplayer editing session
|
||||
* are stored, shared by all entity types.
|
||||
*
|
||||
* @param id The ID of the entity being edited.
|
||||
* @returns the cache key string.
|
||||
*/
|
||||
public static getCollaboratorsKey(id: string) {
|
||||
return `collaborators:${id}`;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets key for caching embed check results. This is a global cache key
|
||||
* (not team-specific) since embed headers are the same for all users.
|
||||
|
||||
Reference in new issue
Block a user