cache2k

How to define persistence storage in cache2k?

廉价感情. 提交于 2019-12-02 20:33:11
问题 It is said in Cache apidoc, that several methods like purge() or flush() operates dependent on persistence storage configured. Unfortunately, I can't find, how to configure one? Is it really possible? 回答1: Older versions of cache2k had persistence support baked in. It was working, but, however it never made it to a level that I would fully trust for production. The actual issue was the clear() operation, which had a quite complex implementation. The clear should be fast, regardless of the

How to define persistence storage in cache2k?

本小妞迷上赌 提交于 2019-12-02 07:37:42
It is said in Cache apidoc , that several methods like purge() or flush() operates dependent on persistence storage configured. Unfortunately, I can't find, how to configure one? Is it really possible? Older versions of cache2k had persistence support baked in. It was working, but, however it never made it to a level that I would fully trust for production. The actual issue was the clear() operation, which had a quite complex implementation. The clear should be fast, regardless of the storage implementation needing some time to remove the data. So, my idea was to switch to a write back scheme,