Lines Matching defs:CacheKey
530 private final ArrayMap<CacheKey, Object> mCache = new ArrayMap<>();
531 private final CacheKey mCacheKey = new CacheKey();
535 Object cached = peek(CacheKey.TYPE_KEY_VALUE, key, userId);
540 return contains(CacheKey.TYPE_KEY_VALUE, key, userId);
544 put(CacheKey.TYPE_KEY_VALUE, key, value, userId);
548 putIfUnchanged(CacheKey.TYPE_KEY_VALUE, key, value, userId, version);
552 return (byte[]) peek(CacheKey.TYPE_FILE, fileName, -1 /* userId */);
556 return contains(CacheKey.TYPE_FILE, fileName, -1 /* userId */);
560 put(CacheKey.TYPE_FILE, key, value, -1 /* userId */);
564 putIfUnchanged(CacheKey.TYPE_FILE, key, value, -1 /* userId */, version);
568 put(CacheKey.TYPE_FETCHED, "isFetched", "true", userId);
572 return contains(CacheKey.TYPE_FETCHED, "", userId);
578 mCache.put(new CacheKey().set(type, key, userId), value);
617 private static final class CacheKey {
626 public CacheKey set(int type, String key, int userId) {
635 if (!(obj instanceof CacheKey))
637 CacheKey o = (CacheKey) obj;