public class FollowCacheKey extends IdBasedRangeCacheKey
Constructor and Description |
---|
FollowCacheKey(Long userId,
Long followedEntityId,
com.communote.server.core.follow.FollowCacheKey.FollowedEntityType type)
Creates a new cache key for the
|
Modifier and Type | Method and Description |
---|---|
String |
getCacheKeyString()
String representation of the cache key which will be used for caching.
|
com.communote.server.core.follow.FollowCacheKey.FollowedEntityType |
getFollowedEntityType() |
getRangeEnd, getRangeStart
getId, isUniquePerClient
public FollowCacheKey(Long userId, Long followedEntityId, com.communote.server.core.follow.FollowCacheKey.FollowedEntityType type)
userId
- the ID of the user who followed the itemsfollowedEntityId
- the ID of the entity for which the follow status should be cached or retrievedtype
- the type of content that is followed, this is the entity type the followedEntityId
refers topublic String getCacheKeyString()
getCacheKeyString
in interface CacheKey
getCacheKeyString
in class IdBasedRangeCacheKey
public com.communote.server.core.follow.FollowCacheKey.FollowedEntityType getFollowedEntityType()
Copyright © 2019 Communote team. All rights reserved.