How to Design a Short link System

  node.js, question

Currently in useExpressAddRedisAddbase58, statistics didn’t think how to do, codeIn this, hope to have old hand directions, thank you!

Just in time, PHP was used to make one at the front end.

Statistics, in the jump method of inside, you need to get the statistical data.
I don’t know if you are asking how the statistics are put in redis inside? If it is, I don’t think it is necessary. redis only needs to avoid consulting data once during the jump, and only needs to know which website the corresponding hash value points to.

If you do not use data and use redis completely, then statistics can be stored using hash or key-value.