Implemented script that trims the Redis Store if necessary.