Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
It would be good if we could have a fallback adapter (NullAdapter) in the case when some adapter fails to connect.
Ex. if Redis adapter throws ConnectionException and if the fallback option is set, no exception is thrown, but it will use NullAdapter.
Right now, if Redis is not available, app dies.
I'm not expert on these libraries, but it looks like you can get very close to this behaviour already via the CachePoolChain.
There is one tiny caveat to this solution: cache writes will be duplicated into the VoidCachePool as well... but the performance impact should be quite negligible.