Documentation ¶
Index ¶
- Constants
- type LocalCacheChannelStore
- func (s LocalCacheChannelStore) ClearCaches()
- func (s LocalCacheChannelStore) GetMemberCount(channelId string, allowFromCache bool) (int64, *model.AppError)
- func (s LocalCacheChannelStore) GetMemberCountFromCache(channelId string) int64
- func (s LocalCacheChannelStore) InvalidateMemberCount(channelId string)
- type LocalCacheEmojiStore
- type LocalCachePostStore
- type LocalCacheReactionStore
- 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
- 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
- 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
- func (s LocalCacheStore) Channel() store.ChannelStore
- func (s LocalCacheStore) DropAllTables()
- func (s LocalCacheStore) Emoji() store.EmojiStore
- func (s *LocalCacheStore) Invalidate()
- func (s LocalCacheStore) Post() store.PostStore
- func (s LocalCacheStore) Reaction() store.ReactionStore
- func (s LocalCacheStore) Role() store.RoleStore
- func (s LocalCacheStore) Scheme() store.SchemeStore
Constants ¶
View Source
const ( REACTION_CACHE_SIZE = 20000 REACTION_CACHE_SEC = 30 * 60 ROLE_CACHE_SIZE = 20000 ROLE_CACHE_SEC = 30 * 60 SCHEME_CACHE_SIZE = 20000 SCHEME_CACHE_SEC = 30 * 60 EMOJI_CACHE_SIZE = 5000 EMOJI_CACHE_SEC = 30 * 60 CHANNEL_MEMBERS_COUNTS_CACHE_SIZE = model.CHANNEL_CACHE_SIZE CHANNEL_MEMBERS_COUNTS_CACHE_SEC = 30 * 60 LAST_POSTS_CACHE_SIZE = 20000 LAST_POSTS_CACHE_SEC = 30 * 60 CLEAR_CACHE_MESSAGE_DATA = "" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalCacheChannelStore ¶ added in v5.20.0
type LocalCacheChannelStore struct { store.ChannelStore // contains filtered or unexported fields }
func (LocalCacheChannelStore) ClearCaches ¶ added in v5.20.0
func (s LocalCacheChannelStore) ClearCaches()
func (LocalCacheChannelStore) GetMemberCount ¶ added in v5.20.0
func (LocalCacheChannelStore) GetMemberCountFromCache ¶ added in v5.20.0
func (s LocalCacheChannelStore) GetMemberCountFromCache(channelId string) int64
func (LocalCacheChannelStore) InvalidateMemberCount ¶ added in v5.20.0
func (s LocalCacheChannelStore) InvalidateMemberCount(channelId string)
type LocalCacheEmojiStore ¶ added in v5.20.0
type LocalCacheEmojiStore struct { store.EmojiStore // contains filtered or unexported fields }
type LocalCachePostStore ¶ added in v5.20.0
func (LocalCachePostStore) ClearCaches ¶ added in v5.20.0
func (s LocalCachePostStore) ClearCaches()
func (LocalCachePostStore) GetPosts ¶ added in v5.20.0
func (s LocalCachePostStore) GetPosts(options model.GetPostsOptions, allowFromCache bool) (*model.PostList, *model.AppError)
func (LocalCachePostStore) InvalidateLastPostTimeCache ¶ added in v5.20.0
func (s LocalCachePostStore) InvalidateLastPostTimeCache(channelId string)
type LocalCacheReactionStore ¶
type LocalCacheReactionStore struct { store.ReactionStore // contains filtered or unexported fields }
func (LocalCacheReactionStore) DeleteAllWithEmojiName ¶
func (s LocalCacheReactionStore) DeleteAllWithEmojiName(emojiName string) *model.AppError
func (LocalCacheReactionStore) GetForPost ¶
type LocalCacheRoleStore ¶
func (LocalCacheRoleStore) GetByNames ¶
func (LocalCacheRoleStore) PermanentDeleteAll ¶
func (s LocalCacheRoleStore) PermanentDeleteAll() *model.AppError
type LocalCacheSchemeStore ¶
type LocalCacheSchemeStore struct { store.SchemeStore // contains filtered or unexported fields }
func (LocalCacheSchemeStore) PermanentDeleteAll ¶
func (s LocalCacheSchemeStore) PermanentDeleteAll() *model.AppError
type LocalCacheStore ¶
func NewLocalCacheLayer ¶
func NewLocalCacheLayer(baseStore store.Store, metrics einterfaces.MetricsInterface, cluster einterfaces.ClusterInterface) LocalCacheStore
func (LocalCacheStore) Channel ¶ added in v5.20.0
func (s LocalCacheStore) Channel() store.ChannelStore
func (LocalCacheStore) DropAllTables ¶
func (s LocalCacheStore) DropAllTables()
func (LocalCacheStore) Emoji ¶ added in v5.20.0
func (s LocalCacheStore) Emoji() store.EmojiStore
func (*LocalCacheStore) Invalidate ¶
func (s *LocalCacheStore) Invalidate()
func (LocalCacheStore) Post ¶ added in v5.20.0
func (s LocalCacheStore) Post() store.PostStore
func (LocalCacheStore) Reaction ¶
func (s LocalCacheStore) Reaction() store.ReactionStore
func (LocalCacheStore) Role ¶
func (s LocalCacheStore) Role() store.RoleStore
func (LocalCacheStore) Scheme ¶
func (s LocalCacheStore) Scheme() store.SchemeStore
Click to show internal directories.
Click to hide internal directories.