public class SmartQueryCache extends Object
Constructor and Description |
---|
SmartQueryCache() |
Modifier and Type | Method and Description |
---|---|
static boolean |
checkShouldSkip(String bucket,
String key) |
static void |
clearBucket(String bucket) |
static Object |
get(String bucket,
String key) |
static Object |
getSmart(String bucket,
String key)
Under certain conditions, will skip the cache lookup and always return null, thus prompting a cache refresh
This is to prevent getting a stale object right after a user has made a POST request.
|
static void |
initCache(String bucket) |
static void |
load() |
static void |
set(String bucket,
String key,
Object value) |
static void |
shutdown() |
public SmartQueryCache()
public static void load()
public static void shutdown()
public static Object getSmart(String bucket, String key)
bucket
- key
- public static boolean checkShouldSkip(String bucket, String key)
public static void clearBucket(String bucket)
Copyright © 2016. All rights reserved.