localcachelayer

package
v5.19.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2020 License: AGPL-3.0, Apache-2.0 Imports: 4 Imported by: 6

Documentation

Index

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

	CLEAR_CACHE_MESSAGE_DATA = ""
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalCacheReactionStore

type LocalCacheReactionStore struct {
	store.ReactionStore
	// contains filtered or unexported fields
}

func (LocalCacheReactionStore) Delete

func (LocalCacheReactionStore) DeleteAllWithEmojiName

func (s LocalCacheReactionStore) DeleteAllWithEmojiName(emojiName string) *model.AppError

func (LocalCacheReactionStore) GetForPost

func (s LocalCacheReactionStore) GetForPost(postId string, allowFromCache bool) ([]*model.Reaction, *model.AppError)

func (LocalCacheReactionStore) Save

type LocalCacheRoleStore

type LocalCacheRoleStore struct {
	store.RoleStore
	// contains filtered or unexported fields
}

func (LocalCacheRoleStore) Delete

func (s LocalCacheRoleStore) Delete(roleId string) (*model.Role, *model.AppError)

func (LocalCacheRoleStore) GetByName

func (s LocalCacheRoleStore) GetByName(name string) (*model.Role, *model.AppError)

func (LocalCacheRoleStore) GetByNames

func (s LocalCacheRoleStore) GetByNames(names []string) ([]*model.Role, *model.AppError)

func (LocalCacheRoleStore) PermanentDeleteAll

func (s LocalCacheRoleStore) PermanentDeleteAll() *model.AppError

func (LocalCacheRoleStore) Save

func (s LocalCacheRoleStore) Save(role *model.Role) (*model.Role, *model.AppError)

type LocalCacheSchemeStore

type LocalCacheSchemeStore struct {
	store.SchemeStore
	// contains filtered or unexported fields
}

func (LocalCacheSchemeStore) Delete

func (s LocalCacheSchemeStore) Delete(schemeId string) (*model.Scheme, *model.AppError)

func (LocalCacheSchemeStore) Get

func (s LocalCacheSchemeStore) Get(schemeId string) (*model.Scheme, *model.AppError)

func (LocalCacheSchemeStore) PermanentDeleteAll

func (s LocalCacheSchemeStore) PermanentDeleteAll() *model.AppError

func (LocalCacheSchemeStore) Save

type LocalCacheStore

type LocalCacheStore struct {
	store.Store
	// contains filtered or unexported fields
}

func NewLocalCacheLayer

func NewLocalCacheLayer(baseStore store.Store, metrics einterfaces.MetricsInterface, cluster einterfaces.ClusterInterface) LocalCacheStore

func (LocalCacheStore) DropAllTables

func (s LocalCacheStore) DropAllTables()

func (*LocalCacheStore) Invalidate

func (s *LocalCacheStore) Invalidate()

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL