Re: callback before evicting element from cache [core.cache]

2016-11-14 Thread juan.facorro
An option would be to wrap any of the implementations in core.cache with your own using core.cache/defcache. Every CacheProtocol function would just use the underlying cache, except for the evict where you would handle the closing of the file descriptor. On Tuesday, November 15, 2016 at 12:49:2

callback before evicting element from cache [core.cache]

2016-11-14 Thread anurag peshne
Hello, I'm trying to use core.cache as a open file cache. I want to close the file descriptor when the cache entry is removed. However, there is no way to pass any callback before an entry is evicted.