Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

编译后的expression 外部缓存支持 #451

Closed
NineBK opened this issue Mar 14, 2022 · 6 comments
Closed

编译后的expression 外部缓存支持 #451

NineBK opened this issue Mar 14, 2022 · 6 comments

Comments

@NineBK
Copy link

NineBK commented Mar 14, 2022

编译后的expression缓存在外部环境中,比如说redis(尝试过,但是无法序列化为Expression)。如果服务多实例部署,缓存在本地是否存在一致性问题

@hillfly
Copy link

hillfly commented Mar 15, 2022

自己做数据一致性保证吧

@zhang13690
Copy link

我同样有此问题,能详细说下吗 @hillfly

@killme2008
Copy link
Owner

有空我测试下 redis,按理说应该可以

@lanjiancheng
Copy link

@killme2008 看上去expression没有实现java的序列化接口,不能缓存到外部环境中。

@killme2008
Copy link
Owner

5.4.0 released, ship serialization feature for compiled expression.

See the test case for usage:

https://github.com/killme2008/aviatorscript/blob/master/src/test/java/com/googlecode/aviator/ExpressionSerializeTest.java

The Option.SERIALIZABLE must be enabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants