Skip to content

Latest commit

 

History

History
50 lines (45 loc) · 948 Bytes

File metadata and controls

50 lines (45 loc) · 948 Bytes

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"