simple refactoring of redis_trip.rb