Documentation ¶
Index ¶
- func NewAppCache() core.AppCache
- func NewBigCacheIndexService(ips core.IndexPostsService, ams core.AuthorizationManageService) (core.CacheIndexService, core.VersionInfo)
- func NewCacheDataService(ds core.DataService) core.DataService
- func NewEventCacheIndexSrv(tms core.TweetMetricServantA) core.CacheIndexService
- func NewNoneCacheIndexService(indexPosts core.IndexPostsService) (core.CacheIndexService, core.VersionInfo)
- func NewRedisCache() core.RedisCache
- func NewRedisCacheIndexService(ips core.IndexPostsService, ams core.AuthorizationManageService) (core.CacheIndexService, core.VersionInfo)
- func NewSimpleCacheIndexService(indexPosts core.IndexPostsService) (core.CacheIndexService, core.VersionInfo)
- func NewWebCache() core.WebCache
- func OnCacheMyFollowIdsEvent(urs core.UserRelationService, userId int64, key ...string)
- func OnCacheMyFriendIdsEvent(urs core.UserRelationService, userIds ...int64)
- func OnExpireHotsTweetEvent()
- func OnExpireIndexTweetEvent(userId int64)
- type BaseCacheEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAppCache ¶
func NewBigCacheIndexService ¶
func NewBigCacheIndexService(ips core.IndexPostsService, ams core.AuthorizationManageService) (core.CacheIndexService, core.VersionInfo)
func NewCacheDataService ¶
func NewCacheDataService(ds core.DataService) core.DataService
func NewEventCacheIndexSrv ¶
func NewEventCacheIndexSrv(tms core.TweetMetricServantA) core.CacheIndexService
func NewNoneCacheIndexService ¶
func NewNoneCacheIndexService(indexPosts core.IndexPostsService) (core.CacheIndexService, core.VersionInfo)
func NewRedisCache ¶
func NewRedisCache() core.RedisCache
func NewRedisCacheIndexService ¶
func NewRedisCacheIndexService(ips core.IndexPostsService, ams core.AuthorizationManageService) (core.CacheIndexService, core.VersionInfo)
func NewSimpleCacheIndexService ¶
func NewSimpleCacheIndexService(indexPosts core.IndexPostsService) (core.CacheIndexService, core.VersionInfo)
func NewWebCache ¶
func OnCacheMyFollowIdsEvent ¶
func OnCacheMyFollowIdsEvent(urs core.UserRelationService, userId int64, key ...string)
func OnCacheMyFriendIdsEvent ¶
func OnCacheMyFriendIdsEvent(urs core.UserRelationService, userIds ...int64)
func OnExpireHotsTweetEvent ¶
func OnExpireHotsTweetEvent()
func OnExpireIndexTweetEvent ¶
func OnExpireIndexTweetEvent(userId int64)
Types ¶
type BaseCacheEvent ¶
type BaseCacheEvent struct { event.UnimplementedEvent // contains filtered or unexported fields }
func NewBaseCacheEvent ¶
func NewBaseCacheEvent(ac core.AppCache) *BaseCacheEvent
func (*BaseCacheEvent) ExpireUserData ¶
func (e *BaseCacheEvent) ExpireUserData(id int64, name string) error
func (*BaseCacheEvent) ExpireUserInfo ¶
func (e *BaseCacheEvent) ExpireUserInfo(id int64, name string) error
func (*BaseCacheEvent) ExpireUserProfile ¶
func (e *BaseCacheEvent) ExpireUserProfile(name string) error
Click to show internal directories.
Click to hide internal directories.