FileCache issueshttps://git.iem.at/sciss/FileCache/-/issues2018-11-25T09:44:40Zhttps://git.iem.at/sciss/FileCache/-/issues/5acquire / release should not fail with busy-set2018-11-25T09:44:40ZHanns Holger Rutzacquire / release should not fail with busy-set*Created by: Sciss*
See https://github.com/Sciss/Mellite/issues/32
Currently, the caller needs to have knowledge whether something "acquired" was actually acquired. As far as I can see, for example, the `TxnConsumer` can not handle multiple acquires if the production is ongoing. I'd consider the current behaviour to be a bug, because it's almost impossible to write fault tolerant code.*Created by: Sciss*
See https://github.com/Sciss/Mellite/issues/32
Currently, the caller needs to have knowledge whether something "acquired" was actually acquired. As far as I can see, for example, the `TxnConsumer` can not handle multiple acquires if the production is ongoing. I'd consider the current behaviour to be a bug, because it's almost impossible to write fault tolerant code.bughttps://git.iem.at/sciss/FileCache/-/issues/4`aquire` should be accompanied by `get`2018-11-25T09:44:40ZHanns Holger Rutz`aquire` should be accompanied by `get`*Created by: Sciss*
So we have
def acquire(key: A): Future[B]
It would be nice to be able to do with with only optional production,
possibly returning an already rendered value:
def get(key: A): Future[Option[B]]
*Created by: Sciss*
So we have
def acquire(key: A): Future[B]
It would be nice to be able to do with with only optional production,
possibly returning an already rendered value:
def get(key: A): Future[Option[B]]
enhancementhttps://git.iem.at/sciss/FileCache/-/issues/3TxnProducer() shouldn&#39;t need transaction2018-11-25T09:44:39ZHanns Holger RutzTxnProducer() shouldn't need transaction*Created by: Sciss*
There is no reason that `TxnProducer.apply` requires a transaction.
*Created by: Sciss*
There is no reason that `TxnProducer.apply` requires a transaction.
enhancementhttps://git.iem.at/sciss/FileCache/-/issues/2Open TxnConsumerImpl for variable acquire arguments2018-11-25T09:44:40ZHanns Holger RutzOpen TxnConsumerImpl for variable acquire arguments*Created by: Sciss*
`TxnConsumerImpl` should have abstract super trait to allow implementations which use additional information in `acquire` just for the production function (SysSon -> `AudioFileCache`)
*Created by: Sciss*
`TxnConsumerImpl` should have abstract super trait to allow implementations which use additional information in `acquire` just for the production function (SysSon -> `AudioFileCache`)
enhancementhttps://git.iem.at/sciss/FileCache/-/issues/1Use Processor and FileUtil2018-11-25T09:44:40ZHanns Holger RutzUse Processor and FileUtil*Created by: Sciss*
Would make sense to rely on these two libraries.
*Created by: Sciss*
Would make sense to rely on these two libraries.
enhancement