cache

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAppCache added in v0.5.0

func NewAppCache() core.AppCache

func NewCacheDataService added in v0.5.0

func NewCacheDataService(ds core.DataService) core.DataService

func NewEventCacheIndexSrv added in v0.5.0

func NewEventCacheIndexSrv(tms core.TweetMetricServantA) core.CacheIndexService

func NewNoneCacheIndexService

func NewNoneCacheIndexService(indexPosts core.IndexPostsService) (core.CacheIndexService, core.VersionInfo)

func NewRedisCache added in v0.3.0

func NewRedisCache() core.RedisCache

func NewRedisCacheIndexService added in v0.3.0

func NewSimpleCacheIndexService

func NewSimpleCacheIndexService(indexPosts core.IndexPostsService) (core.CacheIndexService, core.VersionInfo)

func NewWebCache added in v0.5.0

func NewWebCache() core.WebCache

func OnCacheMyFollowIdsEvent added in v0.5.0

func OnCacheMyFollowIdsEvent(urs core.UserRelationService, userId int64, key ...string)

func OnCacheMyFriendIdsEvent added in v0.5.0

func OnCacheMyFriendIdsEvent(urs core.UserRelationService, userIds ...int64)

func OnExpireHotsTweetEvent added in v0.5.0

func OnExpireHotsTweetEvent()

func OnExpireIndexTweetEvent added in v0.5.0

func OnExpireIndexTweetEvent(userId int64)

Types

type BaseCacheEvent added in v0.5.0

type BaseCacheEvent struct {
	event.UnimplementedEvent
	// contains filtered or unexported fields
}

func NewBaseCacheEvent added in v0.5.0

func NewBaseCacheEvent(ac core.AppCache) *BaseCacheEvent

func (*BaseCacheEvent) ExpireUserData added in v0.5.0

func (e *BaseCacheEvent) ExpireUserData(id int64, name string) error

func (*BaseCacheEvent) ExpireUserInfo added in v0.5.0

func (e *BaseCacheEvent) ExpireUserInfo(id int64, name string) error

func (*BaseCacheEvent) ExpireUserProfile added in v0.5.0

func (e *BaseCacheEvent) ExpireUserProfile(name string) error

Jump to

Keyboard shortcuts

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