Currently, I'm when passing around a cursor s开发者_Go百科tring in a URL, and it looks very ugly. I was wondering if there was a way to shorten these? I was thinking I could encode it & decode it somehow, but I don't really know where to start looking for information on this.
The cursor string is a base 64 encoded string. Any way to shorten it without loosing any data?
I dont think there would be an easier way to shorten and again retrieve back the exact string.
I would suggest you to maintain your own mapping of shortened string to original string in the backend preferably using memcache.
精彩评论