新增缓存值函数
This commit is contained in:
parent
5d14ef2655
commit
14d49d08bf
@ -62,7 +62,7 @@ public class FunctionCacheValue extends AbstractFunction {
|
||||
String key = (String)keyData.getValue(env);
|
||||
String scriptName = (String)env.get("G_SCRIPTNAME");
|
||||
|
||||
String cacheKey = String.format("%s_%s", scriptName, key);
|
||||
String cacheKey = String.format("%s%s_%s", CACHE_PREFIX, scriptName, key);
|
||||
Double value = redis.get(cacheKey);
|
||||
if (value == null) {
|
||||
return AviatorNil.NIL;
|
||||
|
Loading…
Reference in New Issue
Block a user