riot icon indicating copy to clipboard operation
riot copied to clipboard

when to use flush()?

Open jiankuny-zz opened this issue 6 years ago • 2 comments

should i user a timer to timely refresh the cache into index? i see there is a addCache and removeCache which default size is 300000, does it mean only when data size in cache large than 300000, will it add data into index?

jiankuny-zz avatar Aug 28 '18 01:08 jiankuny-zz

You only need to call flush() once after the index, you can do other operations.

vcaesar avatar Aug 28 '18 14:08 vcaesar

so there is no way to timely flush cache into index? the only way is set the cache size smaller enough? because i want to dynamically add data into index

jiankuny-zz avatar Aug 29 '18 12:08 jiankuny-zz