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:28 AM UTC+1, anurag peshne wrote: > > Hello, > > I'm trying to use core.cache > <https://github.com/clojure/core.cache/blob/master/src/main/clojure/clojure/core/cache.clj> > 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. Is there any other way of accomplishing this? > > Thanks, > Anurag > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.