Maybe take a look at the code for singlecache and ...
# rx
a
Maybe take a look at the code for singlecache and see if there's a way you could modify it to your liking, or if you could write something similar. Cache invalidation in Rx is one thing I haven't really figured out.