blemale / scaffeine

Thin Scala wrapper for Caffeine (https://github.com/ben-manes/caffeine)
https://github.com/blemale/scaffeine
Apache License 2.0
265 stars 24 forks source link

Support other effects beside `Future` for async caches #314

Closed wahtique closed 1 year ago

wahtique commented 1 year ago

Hi !

Everything is in the title I think : would it be possible to add the possibility to support other effects types for async caches than Future ? At work we are commited to the typelevel stack and macking scaffeine caches transition between Future and IO is very boilerplate-ish. I imagine it is the same with ZIO or Monix users.

This could be done either thru

If you think this an accceptable evolution for the lib I'm ready to improve my FOSS karma by doing the PR ( for IO only since it's the only one I am familiar with ^^ )

ben-manes commented 1 year ago

fyi, jcouyang/jujiu might be helpful to review.

blemale commented 1 year ago

Hi @wahtique! I'm sorry I have missed your message, so long story short: this project is in maintenance mode as I'm not using it at work, I'm in fact not even using Scala anymore. I have a friend that looked some time ago to add support for effect system but it has not landed. So I would advise you to either: