Skip to content

MarshallChiang/TinyURL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

Tiny URL

structure

├── server.py
├── static
│   ├── html
│   │   └── main.html
│   └── js
│       └── query.js
└── util
    ├── __init__.py
    ├── app.py
    ├── config.py
    └── redis_singleton.py

View

image

Data Type

Shorten Hash
127.0.0.1:6379> TYPE eff0a0
hash
127.0.0.1:6379> HGETALL eff0a0
 1) "url"
 2) "https://www.facebook.com"
 3) "created_at"
 4) "1624440102243"
 5) "session_id"
 6) "6fb663f8431843e393f41166120205fa"
 7) "timestamp"
 8) "1624440102"
 9) "last_viewed"
10) "1624440111"
11) "pageview"
12) "2"
User Session ID
127.0.0.1:6379> TYPE 096a87f21ca241b6b94aef777df1fd09
list
127.0.0.1:6379> LRANGE 096a87f21ca241b6b94aef777df1fd09 0 -1 
1) "9896f9"
2) "faaa4b"
3) "b6b385"

About

system design practice

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages