Count cache access and hits in InMemoryCache and Redis cache