removeGroupMembersCache removes all possible cache entries for a group's members, covering both groups/{email} and groups/{id} lookups.
(workspace string, group *GroupMessage)
| 136 | // removeGroupMembersCache removes all possible cache entries for a group's members, |
| 137 | // covering both groups/{email} and groups/{id} lookups. |
| 138 | func (s *Store) removeGroupMembersCache(workspace string, group *GroupMessage) { |
| 139 | cacheKey := getGroupMembersCacheKey(workspace, formatGroupName(group)) |
| 140 | s.groupMembersCache.Remove(cacheKey) |
| 141 | } |
| 142 | |
| 143 | func getInstanceCacheKey(instanceID string) string { |
| 144 | return instanceID |
no test coverage detected