a open url shortener writen in ruby using redis
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.gitignore
.rvmrc
Gemfile
Gemfile.lock
README.md
minimachine.gemspec
minimachine_config.yaml

README.md

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')