kurz.go icon indicating copy to clipboard operation
kurz.go copied to clipboard

Short url keys integers not characters

Open nodesocket opened this issue 10 years ago • 1 comments

Very nice work. However, my short url keys are integers, how can I get character urls like:

http://127.0.0.1/fVn3K

nodesocket avatar Mar 11 '14 04:03 nodesocket

It is a global counter. Every new URL increases the counter by one. see the counter key in redis for the current value. That value is then encoded using the custom codec in codec.go. Basically you will get letters, when you have enough urls in your instance.

fs111 avatar Mar 11 '14 09:03 fs111