public class UsedBlogsCacheKey extends IdBasedCacheKey
CacheKey
for last and most used blogs.Modifier and Type | Class and Description |
---|---|
static class |
UsedBlogsCacheKey.UsedBlogs
Object holding the IDs of n used blogs.
|
Modifier and Type | Field and Description |
---|---|
static CacheElementProvider<UsedBlogsCacheKey,UsedBlogsCacheKey.UsedBlogs> |
LAST_USED_BLOGS_PROVIDER
Provider for last used blogs
|
static CacheElementProvider<UsedBlogsCacheKey,UsedBlogsCacheKey.UsedBlogs> |
MOST_USED_BLOGS_PROVIDER
Provider for most used blogs
|
Constructor and Description |
---|
UsedBlogsCacheKey(int maxResults)
Creates a new CacheKey for retrieving used blogs.
|
UsedBlogsCacheKey(int maxResults,
long userId)
Creates a new CacheKey for retrieving used blogs.
|
Modifier and Type | Method and Description |
---|---|
int |
getMaxResults() |
getCacheKeyString, getId, isUniquePerClient
public static final CacheElementProvider<UsedBlogsCacheKey,UsedBlogsCacheKey.UsedBlogs> LAST_USED_BLOGS_PROVIDER
public static final CacheElementProvider<UsedBlogsCacheKey,UsedBlogsCacheKey.UsedBlogs> MOST_USED_BLOGS_PROVIDER
public UsedBlogsCacheKey(int maxResults)
maxResults
- max results.public UsedBlogsCacheKey(int maxResults, long userId)
maxResults
- max results.userId
- Id of the user for which this key is used for.Copyright © 2019 Communote team. All rights reserved.