Versions in this module Expand all Collapse all v5 v5.100.1 Jun 2, 2020 v5.100.0 May 26, 2020 Changes in this version + const CHANNEL_CACHE_SEC + const CHANNEL_GUEST_COUNT_CACHE_SEC + const CHANNEL_GUEST_COUNT_CACHE_SIZE + const CHANNEL_MEMBERS_COUNTS_CACHE_SEC + const CHANNEL_MEMBERS_COUNTS_CACHE_SIZE + const CHANNEL_MEMBERS_FOR_USER_CACHE_SEC + const CHANNEL_MEMBERS_FOR_USER_SIZE + const CHANNEL_PINNEDPOSTS_COUNTS_CACHE_SEC + const CHANNEL_PINNEDPOSTS_COUNTS_CACHE_SIZE + const CLEAR_CACHE_MESSAGE_DATA + const EMOJI_CACHE_SEC + const EMOJI_CACHE_SIZE + const LAST_POSTS_CACHE_SEC + const LAST_POSTS_CACHE_SIZE + const LAST_POST_TIME_CACHE_SEC + const LAST_POST_TIME_CACHE_SIZE + const LATEST_KEY + const PROFILES_IN_CHANNEL_CACHE_SEC + const PROFILES_IN_CHANNEL_CACHE_SIZE + const REACTION_CACHE_SEC + const REACTION_CACHE_SIZE + const ROLE_CACHE_SEC + const ROLE_CACHE_SIZE + const SCHEME_CACHE_SEC + const SCHEME_CACHE_SIZE + const TEAM_CACHE_SEC + const TEAM_CACHE_SIZE + const TERMS_OF_SERVICE_CACHE_SEC + const TERMS_OF_SERVICE_CACHE_SIZE + const USER_PROFILE_BY_ID_CACHE_SIZE + const USER_PROFILE_BY_ID_SEC + const WEBHOOK_CACHE_SEC + const WEBHOOK_CACHE_SIZE + type LocalCacheChannelStore struct + func (s LocalCacheChannelStore) ClearAllCustomRoleAssignments() *model.AppError + func (s LocalCacheChannelStore) ClearCaches() + func (s LocalCacheChannelStore) Get(id string, allowFromCache bool) (*model.Channel, *model.AppError) + func (s LocalCacheChannelStore) GetGuestCount(channelId string, allowFromCache bool) (int64, *model.AppError) + func (s LocalCacheChannelStore) GetMemberCount(channelId string, allowFromCache bool) (int64, *model.AppError) + func (s LocalCacheChannelStore) GetMemberCountFromCache(channelId string) int64 + func (s LocalCacheChannelStore) GetMembersForUser(teamId, userId string) (*model.ChannelMembers, *model.AppError) + func (s LocalCacheChannelStore) GetPinnedPostCount(channelId string, allowFromCache bool) (int64, *model.AppError) + func (s LocalCacheChannelStore) IncrementMentionCount(channelId, userId string) *model.AppError + func (s LocalCacheChannelStore) InvalidateChannel(channelId string) + func (s LocalCacheChannelStore) InvalidateGuestCount(channelId string) + func (s LocalCacheChannelStore) InvalidateMemberCount(channelId string) + func (s LocalCacheChannelStore) InvalidatePinnedPostCount(channelId string) + func (s LocalCacheChannelStore) PermanentDeleteMembersByChannel(channelId string) *model.AppError + func (s LocalCacheChannelStore) PermanentDeleteMembersByUser(userId string) *model.AppError + func (s LocalCacheChannelStore) RemoveAllDeactivatedMembers(channelId string) *model.AppError + func (s LocalCacheChannelStore) RemoveMember(channelId, userId string) *model.AppError + func (s LocalCacheChannelStore) SaveMember(member *model.ChannelMember) (*model.ChannelMember, *model.AppError) + func (s LocalCacheChannelStore) UpdateLastViewedAt(channelIds []string, userId string) (map[string]int64, *model.AppError) + func (s LocalCacheChannelStore) UpdateLastViewedAtPost(unreadPost *model.Post, userID string, mentionCount int) (*model.ChannelUnreadAt, *model.AppError) + func (s LocalCacheChannelStore) UpdateMember(member *model.ChannelMember) (*model.ChannelMember, *model.AppError) + type LocalCacheEmojiStore struct + func (es LocalCacheEmojiStore) Delete(emoji *model.Emoji, time int64) *model.AppError + func (es LocalCacheEmojiStore) Get(id string, allowFromCache bool) (*model.Emoji, *model.AppError) + func (es LocalCacheEmojiStore) GetByName(name string, allowFromCache bool) (*model.Emoji, *model.AppError) + type LocalCachePostStore struct + func (s LocalCachePostStore) ClearCaches() + func (s LocalCachePostStore) GetEtag(channelId string, allowFromCache bool) string + func (s LocalCachePostStore) GetPosts(channelId string, offset int, limit int, allowFromCache bool) (*model.PostList, *model.AppError) + func (s LocalCachePostStore) GetPostsSince(channelId string, time int64, allowFromCache bool) (*model.PostList, *model.AppError) + func (s LocalCachePostStore) InvalidateLastPostTimeCache(channelId string) + type LocalCacheReactionStore struct + func (s LocalCacheReactionStore) Delete(reaction *model.Reaction) (*model.Reaction, *model.AppError) + func (s LocalCacheReactionStore) DeleteAllWithEmojiName(emojiName string) *model.AppError + func (s LocalCacheReactionStore) GetForPost(postId string, allowFromCache bool) ([]*model.Reaction, *model.AppError) + func (s LocalCacheReactionStore) Save(reaction *model.Reaction) (*model.Reaction, *model.AppError) + type LocalCacheRoleStore struct + func (s LocalCacheRoleStore) Delete(roleId string) (*model.Role, *model.AppError) + func (s LocalCacheRoleStore) GetByName(name string) (*model.Role, *model.AppError) + func (s LocalCacheRoleStore) GetByNames(names []string) ([]*model.Role, *model.AppError) + func (s LocalCacheRoleStore) PermanentDeleteAll() *model.AppError + func (s LocalCacheRoleStore) Save(role *model.Role) (*model.Role, *model.AppError) + type LocalCacheSchemeStore struct + func (s LocalCacheSchemeStore) Delete(schemeId string) (*model.Scheme, *model.AppError) + func (s LocalCacheSchemeStore) Get(schemeId string) (*model.Scheme, *model.AppError) + func (s LocalCacheSchemeStore) PermanentDeleteAll() *model.AppError + func (s LocalCacheSchemeStore) Save(scheme *model.Scheme) (*model.Scheme, *model.AppError) + type LocalCacheStore struct + func NewLocalCacheLayer(baseStore store.Store, metrics einterfaces.MetricsInterface, ...) LocalCacheStore + func (s *LocalCacheStore) Invalidate() + func (s LocalCacheStore) Channel() store.ChannelStore + func (s LocalCacheStore) DropAllTables() + func (s LocalCacheStore) Emoji() store.EmojiStore + func (s LocalCacheStore) Post() store.PostStore + func (s LocalCacheStore) Reaction() store.ReactionStore + func (s LocalCacheStore) Role() store.RoleStore + func (s LocalCacheStore) Scheme() store.SchemeStore + func (s LocalCacheStore) Team() store.TeamStore + func (s LocalCacheStore) TermsOfService() store.TermsOfServiceStore + func (s LocalCacheStore) User() store.UserStore + func (s LocalCacheStore) Webhook() store.WebhookStore + type LocalCacheTeamStore struct + func (s LocalCacheTeamStore) ClearCaches() + func (s LocalCacheTeamStore) GetUserTeamIds(userID string, allowFromCache bool) ([]string, *model.AppError) + func (s LocalCacheTeamStore) InvalidateAllTeamIdsForUser(userId string) + func (s LocalCacheTeamStore) Update(team *model.Team) (*model.Team, *model.AppError) + type LocalCacheTermsOfServiceStore struct + func (s LocalCacheTermsOfServiceStore) ClearCaches() + func (s LocalCacheTermsOfServiceStore) Get(id string, allowFromCache bool) (*model.TermsOfService, *model.AppError) + func (s LocalCacheTermsOfServiceStore) GetLatest(allowFromCache bool) (*model.TermsOfService, *model.AppError) + func (s LocalCacheTermsOfServiceStore) Save(termsOfService *model.TermsOfService) (*model.TermsOfService, *model.AppError) + type LocalCacheUserStore struct + func (s LocalCacheUserStore) ClearCaches() + func (s LocalCacheUserStore) GetAllProfilesInChannel(channelId string, allowFromCache bool) (map[string]*model.User, *model.AppError) + func (s LocalCacheUserStore) GetProfileByIds(userIds []string, options *store.UserGetByIdsOpts, allowFromCache bool) ([]*model.User, *model.AppError) + func (s LocalCacheUserStore) InvalidateProfileCacheForUser(userId string) + func (s LocalCacheUserStore) InvalidateProfilesInChannelCache(channelId string) + func (s LocalCacheUserStore) InvalidateProfilesInChannelCacheByUser(userId string) + type LocalCacheWebhookStore struct + func (s LocalCacheWebhookStore) ClearCaches() + func (s LocalCacheWebhookStore) DeleteIncoming(webhookId string, time int64) *model.AppError + func (s LocalCacheWebhookStore) GetIncoming(id string, allowFromCache bool) (*model.IncomingWebhook, *model.AppError) + func (s LocalCacheWebhookStore) InvalidateWebhookCache(webhookId string) + func (s LocalCacheWebhookStore) PermanentDeleteIncomingByChannel(channelId string) *model.AppError + func (s LocalCacheWebhookStore) PermanentDeleteIncomingByUser(userId string) *model.AppError Other modules containing this package github.com/mad-app/mattermost-server