Closed Huandao0812 closed 8 years ago
lgtm
lgtm
@ubolonton we could extends and override the class, one simple solution is adding a cache flag to signal don't remove this DDF
@ubolonton @Huandao0812 or don't cache the temporary DDFs if we can work out whether they are temporary.
retest this please
Hold on, don't merge this one yet
I change the DDFCache to keep DDF with name on a separate cache, let's go with this first, a separate flag to signal long live versus ephemeral can be add later. Please review @nhanitvn @phvu @ubolonton @zkidkid @lebinh
That would be a better approach. Anyhow, we have no-named DDFs and named DDFs.
Description and related tickets, documents
DDFCache is backed by a guava's Loading cache, https://github.com/google/guava/wiki/CachesExplained The eviction policy is LRU For DDF cache we use both size-based eviction and time eviction:
Reviewers: @zkidkid @nhanitvn @phvu @lebinh @ubolonton
PR Progress
Make sure all checkboxes below are checked before merged
prefix/description
(see this)