27 lines
613 B
Java
27 lines
613 B
Java
package com.hippo.ehviewer;
|
|
|
|
public class EhCacheKeyFactory {
|
|
|
|
public static String getThumbKey(int gid) {
|
|
return "thumb:" + gid;
|
|
}
|
|
|
|
/**
|
|
* @param index start from 0
|
|
*/
|
|
public static String getNormalPreviewKey(int gid, int index) {
|
|
return "preview:normal:" + gid + ":" + index;
|
|
}
|
|
|
|
/**
|
|
* @param index start from 0
|
|
*/
|
|
public static String getLargePreviewKey(int gid, int index) {
|
|
return "preview:large:" + gid + ":" + index;
|
|
}
|
|
|
|
public static String getImageKey(int gid, int index) {
|
|
return "image:" + gid + ":" + index;
|
|
}
|
|
}
|