Add gallery spider

This commit is contained in:
seven332 committed 2015-07-18 23:27:26 +08:00
1 parent ce68c32cf2
commit 440898fba5
43 files changed
+1980 -203

No files matched your search

@@ -0,0 +1,26 @@
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;
}
}