Distributed cache using Redis and process memory with TTL expiry and LRU pruning