Fixed bug with memory initialization in RedisCacheAdapter