Skip to Content
자바로 배우는 핵심 자료구조와 알고리즘: 기술 면접에 필요한 실용주의 자료구조와 알고리즘
book

자바로 배우는 핵심 자료구조와 알고리즘: 기술 면접에 필요한 실용주의 자료구조와 알고리즘

by 유동환, 앨런 B. 다우니
June 2018
Beginner to intermediate
184 pages
3h 30m
Korean
Hanbit Media, Inc.
Content preview from 자바로 배우는 핵심 자료구조와 알고리즘: 기술 면접에 필요한 실용주의 자료구조와 알고리즘
144
자바로 배우는 핵심 자료구조와 알고리즘
레디스로 작업할 때
hash
가 혼란스러울 수 있습니다.
hash
를 식별하는 키도 있고,
hash
에 있는 값을 식별할 때도 키를 사용하기 때문입니다. 따라서 레디스에서는 이 상황을 바로 잡
기 위해 두 번째 키를 필드
field
라고 부릅니다. 따라서
myhash
같은 키는 특정
hash
를 식별하고,
word1
같은 필드는
hash
안의 값을 식별합니다.
많은 응용 프로그램에서 레디스
hash
안의 값은 정수이므로 레디스는
hincrby
같은 특별한 메
서드를 제공합니다. 이 메서드는 값을 정수로 취급합니다
(파일명:
JedisMaker.java
)
.
jedis
.
hincrBy
("
myhash
",
"
word2
",
1
);
이 메서드는
myhash
에 접근하여
word2
필드의 현재 값
(존재하지 않으면
0
)
을 가져와서
1
만큼 증
가시키고
hash
에 결과를 다시 넣어둡니다.
hash
에 엔트리를 넣고 가져오고 증가시키는 것은 모두 상수 시간 연산입니다.
레디스 데이터 타입에 관한 내용은
http
://
thinkdast
.
com
/
redistypes
를 참고하세요
14.5
실습
11
이제 여러분은 레디스 데이터베이스에 결과를 저장하는 웹 검색 인덱스를 만드는 데 필요한 정
보를 갖게 되었습니다.
자, 그러면
ant JedisIndexTest ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

자바 마이크로서비스를 활용한 SRE : 기업에서 신뢰할 수 있는 마이크로서비스를 위한 패턴

자바 마이크로서비스를 활용한 SRE : 기업에서 신뢰할 수 있는 마이크로서비스를 위한 패턴

조너선 슈나이더

Publisher Resources

ISBN: 9791162240847