Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
레디스로 간단한 랭킹
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
0
150
레디스로 간단한 랭킹
sorted set을 쓰시면 됩니다
Han Jin-Soo
March 19, 2016
Tweet
Share
Other Decks in Education
See All in Education
2025年度伊藤正彦ゼミ紹介
imash
0
170
✅ レポート採点基準 / How Your Reports Are Assessed
yasslab
PRO
0
280
心理学を学び活用することで偉大なスクラムマスターを目指す − 大学とコミュニティを組み合わせた学びの循環 / Becoming a great Scrum Master by learning and using psychology
psj59129
1
1.7k
焦りと不安を、技術力に変える方法 - 新卒iOSエンジニアの失敗談と成長のフレームワーク
hypebeans
1
650
AIで日本はどう進化する? 〜キミが生きる2035年の地図〜
behomazn
0
120
【旧:ZEPメタバース校舎操作ガイド】
ainischool
0
800
渡辺研Slackの使い方 / Slack Local Rule
kaityo256
PRO
10
11k
2025-12-11 nakanoshima.dev LT
takesection
0
110
Going over the Edge
jonoalderson
0
360
Evaluation Methods - Lecture 6 - Human-Computer Interaction (1023841ANR)
signer
PRO
0
1.3k
1014
cbtlibrary
0
530
Chapitre_2_-_Partie_3.pdf
bernhardsvt
0
150
Featured
See All Featured
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
61
52k
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
1
100
Leading Effective Engineering Teams in the AI Era
addyosmani
9
1.6k
How to Ace a Technical Interview
jacobian
281
24k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
79
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
122
21k
My Coaching Mixtape
mlcsv
0
48
What does AI have to do with Human Rights?
axbom
PRO
0
2k
Marketing to machines
jonoalderson
1
4.6k
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
0
1.1k
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
0
410
SEO for Brand Visibility & Recognition
aleyda
0
4.2k
Transcript
ۨ٣झ۽ рױೠ ۘఊ ٜ݅ӝ ೠࣻ
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"
ױ ؘఠо ܻ ऺৈ যঠ݅ ۘఊਸ ҳೡ ࣻ .
( ਬ୶ೡ ࣻ )
ױ ؘఠо ܻ ऺৈ যঠ݅ ۘఊਸ ҳೡ ࣻ .
( ਬ୶ೡ ࣻ ) ۘఊ दझమਸ ই औѱ ڣٯ ҳഅೡ ࣻ .
ױ ؘఠо ܻ ऺৈ যঠ݅ ۘఊਸ ҳೡ ࣻ .
( ਬ୶ೡ ࣻ ) ۘఊ दझమਸ ই औѱ ڣٯ ҳഅೡ ࣻ . য٣ী ॳݶ જਸө ѱ ۘఊ दझమ ঈ ࣽਤ