a ruby short url generate lib base on redis