Handle caching and invalidation when Redis is unavailable

I have made simple solution for handle situation when Redis server is unavailable. If Redis works fine - use both caching and invalidation as well, if something wrong with Redis connection - instead of raise ConnectionError, for cache - uses qs within DB, for invalidation just skip invalidation and return None