Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
레디스로 간단한 랭킹
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Han Jin-Soo
March 19, 2016
Education
180
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
레디스로 간단한 랭킹
sorted set을 쓰시면 됩니다
Han Jin-Soo
March 19, 2016
Transcript
23 slides
ۨ٣झ۽ рױೠ ۘఊ ٜ݅ӝ ೠࣻ
None
in-memory data structure store
https://github.com/antirez/redis-io
Cluster Connection Geo Hashes HyperLogLog Keys Lists Pub/Sub Scripting Server
Sorted Sets Strings Transactions নೠ Groupٜ
Cluster Connection Geo Hashes HyperLogLog Keys Lists Pub/Sub Scripting Server
Sorted Sets Strings Transactions নೠ Groupٜ
None
None
ؘఠ ֍ӝ 127.0.0.1:6379> zadd ranking 9999999 a (integer) 1 127.0.0.1:6379>
zadd ranking 8888888 b (integer) 1 127.0.0.1:6379> zadd ranking 7777777 c (integer) 1
ؘఠ ഛੋ 127.0.0.1:6379> zrange ranking 0 -1 withscores
ؘఠ ഛੋ 127.0.0.1:6379> zrange ranking 0 -1 withscores 1) "c"
2) "7777777" 3) "b" 4) "8888888" 5) "a" 6) "9999999"
ؘఠ ഛੋ 127.0.0.1:6379> zrank ranking a (integer) 2 127.0.0.1:6379> zrank
ranking b (integer) 1 127.0.0.1:6379> zrank ranking c (integer) 0
ؘఠ ഛੋ 1١ => 0 2١ => 1 3١ =>
2 127.0.0.1:6379> zrank ranking a (integer) 2 127.0.0.1:6379> zrank ranking b (integer) 1 127.0.0.1:6379> zrank ranking c (integer) 0
ؘఠ ഛੋ 1١ => 0 2١ => 1 3١ =>
2 127.0.0.1:6379> zrank ranking a (integer) 2 127.0.0.1:6379> zrank ranking b (integer) 1 127.0.0.1:6379> zrank ranking c (integer) 0 a b c
Q. ࣻо ઁੌ ֫ গо 1١ ೮ਵݶ જѷযਃ
Q. ࣻо ઁੌ ֫ গо 1١ ೮ਵݶ જѷযਃ 127.0.0.1:6379> zrevrank
ranking a (integer) 0 127.0.0.1:6379> zrevrank ranking b (integer) 1 127.0.0.1:6379> zrevrank ranking c (integer) 2
Q. ࣻо ઁੌ ֫ গо 1١ ೮ਵݶ જѷযਃ 127.0.0.1:6379> zrevrank
ranking a (integer) 0 127.0.0.1:6379> zrevrank ranking b (integer) 1 127.0.0.1:6379> zrevrank ranking c (integer) 2 a b c
Q. rankingী ਬ ࣻо হחؘ ۄب ١ࣻо ঌҊ रযਃ
Q. rankingী ਬ ࣻо হחؘ ۄب ١ࣻо ঌҊ रযਃ 127.0.0.1:6379>
zrangebyscore ranking 6666666 8888888 1) "c" 2) "b"
Q. rankingী ਬ ࣻо হחؘ ۄب ١ࣻо ঌҊ रযਃ 127.0.0.1:6379>
zrangebyscore ranking 6666666 8888888 1) "c" 2) "b" 127.0.0.1:6379> zrangebyscore ranking 6666666 8888888 limit 0 1 1) "c"
ױ ؘఠо ܻ ऺৈ যঠ݅ ۘఊਸ ҳೡ ࣻ .
( ਬ୶ೡ ࣻ )
ױ ؘఠо ܻ ऺৈ যঠ݅ ۘఊਸ ҳೡ ࣻ .
( ਬ୶ೡ ࣻ ) ۘఊ दझమਸ ই औѱ ڣٯ ҳഅೡ ࣻ .
ױ ؘఠо ܻ ऺৈ যঠ݅ ۘఊਸ ҳೡ ࣻ .
( ਬ୶ೡ ࣻ ) ۘఊ दझమਸ ই औѱ ڣٯ ҳഅೡ ࣻ . য٣ী ॳݶ જਸө ѱ ۘఊ दझమ ঈ ࣽਤ
Other Decks in Education
See All in Education
Liburd and Stoll Farrell "Copyright Essentials From A to AI: A 2026 NISO Training Series, Session One: Foundations & Frameworks of Copyright"
baltimoreniso
0
250
LP2627
cbtlibrary
0
220
Komunikasi Massa: 11 Teori Kunci Komunikasi Massa
adeputra13
0
310
Railsチュートリアル × 反転学習の事例紹介
yasslab
PRO
3
190k
Session 3 - Diplomasi
adeputra13
0
610
GOVERNOR ADDRESS 1 :延岡 研一 氏(国際ロータリー第2720地区:2026-2027年度 地区ガバナー・人吉ロータリークラブ ・人吉電気工事株式会社 会長)卓話 : 2026.10.26例会・卓話
2720japanoke
0
690
Session 3 - Mass Communication
adeputra13
0
750
Sekolah Sabat - Triwulan 4 2026 - Pelajaran 7
hiola
0
8.6k
Sekolah Sabat - Triwulan 4 2026 - Pelajaran 6
hiola
0
9.4k
自己紹介 / who-am-i
yasulab
6
7.6k
2026年度秋学期 統計学 第8回(オンデマンド配信回) 演習(1)・問題に対する答案の書き方 (2026. 11. 17)
akiraasano
PRO
0
110
[2026後期火5] 論理学(京都大学文学部 後期 第1回)「名前はあるのに、誰なのかわからない」
yatabe
0
210
Featured
See All Featured
The SEO identity crisis: Don't let AI make you average
varn
0
630
Test your architecture with Archunit
thirion
2
2.5k
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
2
540
How to Talk to Developers About Accessibility
jct
2
630
Between Models and Reality
mayunak
4
610
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
2
530
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.7k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.7k
Statistics for Hackers
jakevdp
799
230k
Music & Morning Musume
bryan
48
7.5k
A Soul's Torment
seathinner
9
4k
Building AI with AI
inesmontani
PRO
1
1.4k