Create redis_key method and associated tests.