Skip to content

pedrosnk/minimachine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mini Machine

This is a gem to short any kind of text into an id with the caracters to [0-9 a-z A-Z] and store the key\value into a redis instance. Used mainly to short url

Version

first release

0.0.1

Instalation

gem install minimachine

Usage

First set a Redis server up and running, then connect to that server using the correct host and port

mini = MiniMachine::MiniMe.new(:host => '127.0.0.1', :port => 6379)

store some url

url_key = mini.insert_url('http://google.com')

recover the url from a given key

my_url = mini.recover_url('1')

About

a open url shortener writen in ruby using redis

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages