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
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
株式会社アイエスエイ 会社概要
recruit_isa
0
110
情報科学類で学べる専門科目38選
momeemt
0
630
(2025) L'origami, mieux que la règle et le compas
mansuy
0
150
DIP_1_Introduction
hachama
0
240
2024-2025 CBT top items
cbtlibrary
0
130
~キャラ付け考えていますか?~ AI時代だからこそ技術者に求められるセルフブランディングのすゝめ
masakiokuda
7
500
みんなのコード 2024年度活動報告書/ 2025年度活動計画書
codeforeveryone
0
360
Présentation_1ère_Spé_2025.pdf
bernhardsvt
0
400
HCI and Interaction Design - Lecture 2 - Human-Computer Interaction (1023841ANR)
signer
PRO
0
1.3k
[FUN Open Campus 2025] 何でもセンシングしていいですか?
pman0214
0
250
Test-NUTMEG紹介スライド
mugiiicha
0
230
Adobe Express
matleenalaakso
1
8k
Featured
See All Featured
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
36
6.1k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.5k
Building Flexible Design Systems
yeseniaperezcruz
329
39k
How GitHub (no longer) Works
holman
315
140k
Producing Creativity
orderedlist
PRO
347
40k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
34
2.3k
Bootstrapping a Software Product
garrettdimon
PRO
307
110k
Gamification - CAS2011
davidbonilla
81
5.5k
Documentation Writing (for coders)
carmenintech
75
5.1k
GitHub's CSS Performance
jonrohan
1032
470k
The Power of CSS Pseudo Elements
geoffreycrofte
79
6k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
10
610
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"
ױ ؘఠо ܻ ऺৈ যঠ݅ ۘఊਸ ҳೡ ࣻ .
( ਬ୶ೡ ࣻ )
ױ ؘఠо ܻ ऺৈ যঠ݅ ۘఊਸ ҳೡ ࣻ .
( ਬ୶ೡ ࣻ ) ۘఊ दझమਸ ই औѱ ڣٯ ҳഅೡ ࣻ .
ױ ؘఠо ܻ ऺৈ যঠ݅ ۘఊਸ ҳೡ ࣻ .
( ਬ୶ೡ ࣻ ) ۘఊ दझమਸ ই औѱ ڣٯ ҳഅೡ ࣻ . য٣ী ॳݶ જਸө ѱ ۘఊ दझమ ঈ ࣽਤ