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

后写缓存不生效求解 #2

Open
rangerzhou opened this issue Sep 21, 2020 · 0 comments
Open

后写缓存不生效求解 #2

rangerzhou opened this issue Sep 21, 2020 · 0 comments

Comments

@rangerzhou
Copy link

不知道为什么只要启动后写缓存,put 操作后数据库中还是查不到更新的数据,就好像后写缓存没生效一样,按理说我设置了 FlushFrequency(10) 了,应该很快就会写到数据库啊,不启动后写缓存的话,每 put 一条数据,在 mysql 数据库中都能查询到更新,是不是哪里配置的不对?
personCacheCfg.setReadThrough(true);
personCacheCfg.setWriteThrough(true);
personCacheCfg.setWriteBehindEnabled(true);
personCacheCfg.setWriteBehindFlushFrequency(10);
personCacheCfg.setWriteBehindFlushSize(128);
personCacheCfg.setWriteBehindBatchSize(10);
personCacheCfg.setWriteBehindFlushThreadCount(8);

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

1 participant