Skip to content

Conversation

@singsangssong
Copy link
Collaborator

@singsangssong singsangssong commented Aug 4, 2025

๐Ÿ”— Related Issue

โŒจ๏ธ What I did

memcached ์„œ๋ฒ„์˜ gat๋ฅผ java-client์—๋„ ์ถ”๊ฐ€ํ•ฉ๋‹ˆ๋‹ค.
์ด๋ฅผ ํ†ตํ•ด expire time์„ ์žฌ์„ค์ • ๊ฐ€๋Šฅํ•˜๋„๋ก ํ•ฉ๋‹ˆ๋‹ค.

  • Operation ์ธํ„ฐํŽ˜์ด์Šค ๋ฐ Ascii, Binary ํ”„๋กœํ† ์ฝœ ๊ตฌํ˜„์ฒด ์ถ”๊ฐ€
  • OperationFactory์— GetAndTouch ์ถ”๊ฐ€
  • MemcachedClient์— ์‚ฌ์šฉ์ž๊ฐ€ ํ˜ธ์ถœํ•  ์ˆ˜ ์žˆ๋Š” gat ๊ธฐ๋Šฅ ์ถ”๊ฐ€
  • gat ๊ธฐ๋Šฅ์„ ์œ„ํ•œ ํ…Œ์ŠคํŠธ ์ฝ”๋“œ ์ถ”๊ฐ€

CI Test ์‹คํŒจ ๊ด€๋ จ

ํ˜„์žฌ ์‹คํŒจํ•˜๊ณ  ์žˆ๋Š” CI Test๋Š” JDK 21, ubuntu-latest์—์„œ Test ARCUS Client with ZK๋ฅผ ์‹คํŒจํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค.
์ฝ”๋“œ์—์„œ๋Š” AsciiClientTest์˜ gat๊ด€๋ จ ํ…Œ์ŠคํŠธ๋ฅผ ์‹คํŒจํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค.
ํ•ด๋‹น ํ…Œ์ŠคํŠธ๋Š” ํ˜„์žฌ ๋„์ปค์— ๋ฆด๋ฆฌ์ฆˆ๋œ memcached ์„œ๋ฒ„๋Š” gat ๊ธฐ๋Šฅ์ด ์•„์ง ๋ฐ˜์˜๋˜์ง€ ์•Š์•˜๊ธฐ์—, ํ…Œ์ŠคํŠธ์ฝ”๋“œ์—์„œ gat๋ช…๋ น์„ ์š”์ฒญํ•ด๋„ ์‘๋‹ต์ด ์—†๋Š” ๋ฌธ์ œ์ž…๋‹ˆ๋‹ค.

@jhpark816 jhpark816 requested review from oliviarla and uhm0311 August 4, 2025 05:25
@uhm0311
Copy link
Collaborator

uhm0311 commented Aug 4, 2025

์•„์Šคํ‚ค ๋ช…๋ น์–ด๋Š” gat๋ฅผ ํ˜ธ์ถœํ•˜๊ณ  ์žˆ๊ณ , API ๊ตฌํ˜„์€ gats๋ฅผ ํ˜ธ์ถœํ•˜๋Š” ๊ฒƒ ๊ธฐ์ค€์œผ๋กœ ๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค.
CASValue ํƒ€์ž…์„ ๋ฐ˜ํ™˜ํ•˜์ง€ ์•Š๋„๋ก ์ˆ˜์ •ํ•˜๊ฑฐ๋‚˜, gats ์•„์Šคํ‚ค ๋ช…๋ น์–ด๋ฅผ ํ˜ธ์ถœํ•˜๋„๋ก ๋ณ€๊ฒฝํ•ด์•ผ ํ•  ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.

@singsangssong
Copy link
Collaborator Author

์•„์Šคํ‚ค ๋ช…๋ น์–ด๋Š” gat๋ฅผ ํ˜ธ์ถœํ•˜๊ณ  ์žˆ๊ณ , API ๊ตฌํ˜„์€ gats๋ฅผ ํ˜ธ์ถœํ•˜๋Š” ๊ฒƒ ๊ธฐ์ค€์œผ๋กœ ๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค.
CASValue ํƒ€์ž…์„ ๋ฐ˜ํ™˜ํ•˜์ง€ ์•Š๋„๋ก ์ˆ˜์ •ํ•˜๊ฑฐ๋‚˜, gats ์•„์Šคํ‚ค ๋ช…๋ น์–ด๋ฅผ ํ˜ธ์ถœํ•˜๋„๋ก ๋ณ€๊ฒฝํ•ด์•ผ ํ•  ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.

๋„ค ์•Œ๊ฒ ์Šต๋‹ˆ๋‹ค. CASValue ํƒ€์ž…์„ ๋ฐ˜ํ™˜ํ•˜์ง€ ์•Š๋„๋ก ์ˆ˜์ •ํ•œ ํ›„, ์•„์Šคํ‚ค ๋ช…๋ น์–ด๋Š” gat๋ฅผ ํ˜ธ์ถœํ•˜๋„๋ก ์ฝ”๋“œ๋ฅผ ์ˆ˜์ •ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค.

@uhm0311
Copy link
Collaborator

uhm0311 commented Aug 5, 2025

์ปค๋ฐ‹ ๊ฐœ์ˆ˜๊ฐ€ ๊ฐ‘์ž๊ธฐ ๋งŽ์•„์กŒ๋Š”๋ฐ, ์–ด๋–ป๊ฒŒ ๋œ ์ผ์ธ๊ฐ€์š”?

@oliviarla oliviarla changed the base branch from master to develop August 5, 2025 04:48
@singsangssong
Copy link
Collaborator Author

develop ๋ธŒ๋žœ์น˜์˜ ์ตœ์‹  ๋ณ€๊ฒฝ์‚ฌํ•ญ์„ ์ œ ์ž‘์—… ๋ธŒ๋žœ์น˜์— ๋ฐ˜์˜ํ•˜๋Š” ๊ณผ์ •์—์„œ, rebase ๋Œ€์‹  merge๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ develop ๋ธŒ๋žœ์น˜์˜ ๋ชจ๋“  ์ปค๋ฐ‹๋“ค์ด ํ•จ๊ป˜ ํฌํ•จ๋˜์—ˆ๊ณ , PR์˜ ๋Œ€์ƒ๋ธŒ๋žœ์น˜๊ฐ€ master๋กœ ๋ณ€๊ฒฝ๋œ ์ ์ด ๋ฌธ์ œ๊ฐ€ ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

์•ž์œผ๋กœ PR์ž‘์—… ์ฃผ์˜ํ•˜๋ฉฐ ์ˆ˜ํ–‰ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค.

@uhm0311
Copy link
Collaborator

uhm0311 commented Aug 5, 2025

@oliviarla

์˜๊ฒฌ์ด ๊ถ๊ธˆํ•ด์„œ ์งˆ๋ฌธํ•ฉ๋‹ˆ๋‹ค.

gat์˜ ์‘๋‹ต์€ get ๋ช…๋ น์–ด์˜ ์‘๋‹ต๊ณผ ๋™์ผํ•œ ํฌ๋งท์ž…๋‹ˆ๋‹ค.
๋”ฐ๋ผ์„œ GetAndTouchOperation์ด GetOperation์„ ์ƒ์†๋ฐ›๊ฒŒ ๋งŒ๋“ค์–ด๋„ ๋  ๊ฒƒ ๊ฐ™๊ณ , API์˜ ๋ฐ˜ํ™˜ ํƒ€์ž…๋„ GetFuture๋กœ ํ•ด๋„ ๋  ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.
GetAndTouchOperation์ด GetOperation์„ ์ƒ์†๋ฐ›์€ ๋‹ค์Œ, ์•„์Šคํ‚ค ๋ช…๋ น์–ด๋ฅผ ์ดˆ๊ธฐํ™”ํ•˜๋Š” ๋ฉ”์†Œ๋“œ๋ฅผ ์˜ค๋ฒ„๋ผ์ด๋“œํ•˜๋ฉด ๊ตฌํ˜„์ด ๋”์šฑ ๊ฐ„ํŽธํ•ด์ง‘๋‹ˆ๋‹ค.
์–ด๋–ป๊ฒŒ ์ƒ๊ฐํ•˜์‹œ๋‚˜์š”?

@oliviarla
Copy link
Collaborator

@uhm0311

touch, gat ๋ช…๋ น์„ ์ถ”๊ฐ€ํ•œ ๊ฒƒ์€ memcached ์ง„์˜๊ณผ์˜ ํ˜ธํ™˜์„ ์œ„ํ•œ ๊ฒƒ์ธ๋ฐ, ํ˜„์žฌ spymemcached์˜ ascii API์—์„œ๋Š” touch ๋งŒ ์ง€์›ํ•˜๊ณ  gat์€ ์ง€์›ํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.(UnsupportedException ๋ฐœ์ƒ) ๋”ฐ๋ผ์„œ gat, gats API๋Š” ์ €ํฌ๊ฐ€ ์ž์ฒด์ ์œผ๋กœ ์ •์˜ํ•˜์—ฌ ์ œ๊ณตํ•˜๋ฉด ๋  ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค. ์ฆ‰, ๋ง์”€ํ•˜์‹ ๋Œ€๋กœ GetFuture๋ฅผ ๋ฐ˜ํ™˜ํ•˜๋„๋ก ํ•ด๋„ ์ธํ„ฐํŽ˜์ด์Šค ํ˜ธํ™˜ ์ƒ ๋ฌธ์ œ๊ฐ€ ์—†์Šต๋‹ˆ๋‹ค.

๋‚ด๋ถ€ Operation ์ƒ์„ฑ ๊ด€์ ์—์„œ๋Š” ์ค‘๋ณต์„ ์ตœ์†Œํ™”ํ•˜๋Š” ๋ฐฉํ–ฅ์œผ๋กœ ๊ฐ€๋Š” ๊ฒƒ์— ๋™์˜ํ•ฉ๋‹ˆ๋‹ค. ๊ทธ๋Ÿฌ๋ฉด GetAndTouchOperationImpl, GetsAndTouchOperationImpl ํด๋ž˜์Šค๋ฅผ ์ƒˆ๋กœ ์ƒ์„ฑํ•˜์—ฌ BaseGetOperationImpl์„ ์ƒ์†๋ฐ›๋„๋ก ํ•˜๊ณ , ๊ฐ๊ฐ GetOperation, GetsOperation์„ ๊ตฌํ˜„ํ•˜๊ฒŒ ๋˜๋‚˜์š”?

@uhm0311
Copy link
Collaborator

uhm0311 commented Aug 5, 2025

BaseGetOpImpl ํด๋ž˜์Šค๋ฅผ ์ƒ์†ํ•˜๊ฒŒ ํ•˜๊ณ , BaseGetOpImpl ํด๋ž˜์Šค์— gat ๋ช…๋ น์–ด๋ฅผ ์œ„ํ•œ expTime ํ•„๋“œ๋ฅผ ์ถ”๊ฐ€ํ•œ ๋‹ค์Œ, BaseGetOpImpl ํด๋ž˜์Šค์˜ ์ผ๋ถ€ ๋ฉ”์†Œ๋“œ๋ฅผ ์กฐ๊ธˆ ์ˆ˜์ •ํ•˜๋ฉด ๋  ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.

@singsangssong
Copy link
Collaborator Author

์ฒ˜์Œ ๊ตฌํ˜„ํ•  ๋•Œ,BaseGetOpImplํด๋ž˜์Šค์— expTime ํ•„๋“œ๊ฐ€ ์—†๋Š” ์ ๊ณผ, ๋ฉ”์„œ๋“œ๊ฐ€ GetAndTouchOperationImpl ํด๋ž˜์Šค๋ฅผ ์ƒ์†ํ•˜๊ธฐ ํž˜๋“ค๋‹ค๊ณ  ํŒ๋‹จํ–ˆ์Šต๋‹ˆ๋‹ค.

์ฝ”๋ฉ˜ํŠธ์ฃผ์‹  ์‚ฌํ•ญ์„ ์•„๋ž˜ ์ •๋ฆฌํ–ˆ์Šต๋‹ˆ๋‹ค. ์ด ๋‚ด์šฉ์„ ๋ฐ”ํƒ•์œผ๋กœ ์ฝ”๋“œ๋ฅผ ์ˆ˜์ •ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค.

  • GetAndTouchOperationImpl ํด๋ž˜์Šค๊ฐ€ BaseGetOpImpl ํด๋ž˜์Šค๋ฅผ ์ƒ์† (์ด๋•Œ, GetAndTouch์— ๋งž๋Š” ๋ฉ”์„œ๋“œ ๋ฐ ํ•„๋“œ ์ˆ˜์ •)
  • API ๋ฐ˜ํ™˜ ํƒ€์ž… GetFuture ๋ฐ˜ํ™˜
  • GetsAndTouchOperationImplํด๋ž˜์Šค ์ƒ์„ฑ

@oliviarla
Copy link
Collaborator

@jhpark816
getAndTouch๋Š” spymemcached์™€ ํ˜ธํ™˜๋˜์ง€ ์•Š๊ธฐ ๋•Œ๋ฌธ์—, asyncGetAndTouch ๋ฉ”์„œ๋“œ์™€ asyncGetsAndTouch ๋ฉ”์„œ๋“œ๋งŒ ์ œ๊ณตํ•˜๋ฉด ๋  ๊ฒƒ ๊ฐ™์€๋ฐ ์–ด๋–ป๊ฒŒ ์ƒ๊ฐํ•˜์‹œ๋‚˜์š”?

@jhpark816
Copy link
Collaborator

asyncGetAndTouch ๋ฉ”์„œ๋“œ์™€ asyncGetsAndTouch ๋ฉ”์„œ๋“œ๋งŒ ์ œ๊ณต

์œ„์™€ ๊ฐ™์ด ์ง„ํ–‰ํ•˜๋ฉด ๋ฉ๋‹ˆ๋‹ค.

@singsangssong
Copy link
Collaborator Author

@uhm0311 @oliviarla
๋ฆฌ๋ทฐ ๋ถ€ํƒ๋“œ๋ฆฝ๋‹ˆ๋‹ค. ์ƒ๋‹จ์— ์ฝ”๋ฉ˜ํŠธ์ฃผ์‹ ๋Œ€๋กœ asyncGetAndTouch, asyncGetsAndTouch ๋ฉ”์„œ๋“œ๋งŒ ๊ตฌํ˜„์™„๋ฃŒํ–ˆ์Šต๋‹ˆ๋‹ค.

uhm0311
uhm0311 previously approved these changes Sep 9, 2025
Copy link
Collaborator

@oliviarla oliviarla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

๋ฆฌ๋ทฐ ์™„๋ฃŒ์ž…๋‹ˆ๋‹ค.

oliviarla
oliviarla previously approved these changes Sep 10, 2025
@oliviarla oliviarla requested a review from jhpark816 September 10, 2025 07:26
uhm0311
uhm0311 previously approved these changes Sep 10, 2025
Copy link
Collaborator

@jhpark816 jhpark816 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

๋ฆฌ๋ทฐ ์™„๋ฃŒ

INCR(OperationType.WRITE), DECR(OperationType.WRITE),
DELETE(OperationType.WRITE),
GET(OperationType.READ), GETS(OperationType.READ),
GAT(OperationType.WRITE),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GET, GETS์— ๋Œ€์‘๋˜๊ฒŒ GAT ์™ธ์—๋„ GATS๋ฅผ ๋‘ก์‹œ๋‹ค.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OperationType.java ํŒŒ์ผ์—์„œ
Operation Hierarchy ๋ถ€๋ถ„์—๋„ ๋ฐ˜์˜ ๋ฐ”๋ž๋‹ˆ๋‹ค.

@singsangssong
Copy link
Collaborator Author

์ฝ”๋ฉ˜ํŠธ ๋‚ด์šฉ ๋ชจ๋‘ ๋ฐ˜์˜ํ–ˆ์Šต๋‹ˆ๋‹ค.
๊ทธ ์™ธ์— BaseGetOpImpl์—์„œ Replication์„ ์œ„ํ•ด ์ฝ”๋“œ๊ฐ€ ์ถ”๊ฐ€๋˜์—ˆ์œผ๋‹ˆ, ํ™•์ธ ํ›„ approve ๋ถ€ํƒ๋“œ๋ฆฝ๋‹ˆ๋‹ค.

// BaseGetOpImpl.java
@Override
  public final void handleLine(String line) {
    /*
      VALUE <key> <flags> <bytes> [<cas unique>]\r\n
      <data block>\r\n
      ...
      END\r\n
    */
    /* ENABLE_REPLICATION if */
    if (hasSwitchedOver(line)) {
      prepareSwitchover(line);
      return;
    }
    /* ENABLE_REPLICATION end */
    if (line.equals("END")) {
    ....

Copy link
Collaborator

@jhpark816 jhpark816 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

๋ฆฌ๋ทฐ ์™„๋ฃŒ

* BTreeInsertAndGetOperationImpl (asyncBopInsertAndGetTrimmed)
* FlushOperationImpl / FlushByPrefixOperationImpl (flush)
* SetAttrOperationImpl (asyncSetAttr)
* GetAndTouchOperation / GetsAndTouchOperation (asyncGetAndTouch / asyncGetsAndTouch)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์•„๋ž˜์™€ ๊ฐ™์ด ์ •๋ฆฌ๋˜์–ด์•ผ ํ•  ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.

GetAndTouchOperationImpl / GetsAndTouchOperationImpl (asyncGetAndTouch / asyncGetsAndTouch)

super(cb);
cmd = c;
keys = k;
exp = 0;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gat, gats์—์„œ exp ๊ฐ’์„ 0์„ ์ค„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
๋”ฐ๋ผ์„œ, exp ๊ฐ’ ์ž์ฒด๋งŒ์œผ๋กœ๋Š” ์ •์ƒ์ ์ธ ๊ฐ’์ธ์ง€ ํ™•์ธํ•  ์ˆ˜ ์—†๊ณ ,
cmd ๊ฐ’์„ ํ™•์ธํ•˜๊ณ  exp ์‚ฌ์šฉ ์—ฌ๋ถ€๋ฅผ ๊ฒฐ์ •ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.
๊ทธ๋Ÿฌ๋ฉด, ์—ฌ๊ธฐ์„œ exp ๊ฐ’์„ ์„ค์ •ํ•ด ๋‘˜ ํ•„์š”๊ฐ€ ์žˆ๋Š” ์ง€ ๋ชจ๋ฅด๊ฒ ์–ด์š”.

@jhpark816
Copy link
Collaborator

@uhm0311 @oliviarla

#941 (comment) ์ฝ”๋ฉ˜ํŠธ๋ฅผ ํ™•์ธํ•˜์„ธ์š”.

@oliviarla
Copy link
Collaborator

@jhpark816
gat/gats ๋ช…๋ น์—์„œ replication, migration ๊ด€๋ จ ์‘๋‹ต์„ ๋ณด๋‚ด์ง€ ์•Š์œผ๋ฏ€๋กœ ํ•ด๋‹น ์ฒ˜๋ฆฌ๋Š” ์ œ์™ธํ•˜์—ฌ๋„ ๋ฉ๋‹ˆ๋‹ค.

@jhpark816
Copy link
Collaborator

@ing-eoking
์บ์‹œ ์„œ๋ฒ„์—์„œ ์•„๋ž˜ ๋ถ€๋ถ„์„ ํ™•์ธํ•ด ์ฃผ์„ธ์š”.

gat/gats ๋ช…๋ น์—์„œ replication, migration ๊ด€๋ จ ์‘๋‹ต์„ ๋ณด๋‚ด์ง€ ์•Š์œผ๋ฏ€๋กœ ํ•ด๋‹น ์ฒ˜๋ฆฌ๋Š” ์ œ์™ธํ•˜์—ฌ๋„ ๋ฉ๋‹ˆ๋‹ค.

@ing-eoking
Copy link
Contributor

@jhpark816

์บ์‹œ ์„œ๋ฒ„์—์„œ ์•„๋ž˜ ๋ถ€๋ถ„์„ ํ™•์ธํ•ด ์ฃผ์„ธ์š”.

๋„ค, ์บ์‹œ ์„œ๋ฒ„์—์„œ๋Š” get and touch ์—ฐ์‚ฐ ์ค‘ ์‹คํŒจ๊ฐ€ ๋ฐœ์ƒํ•˜๋”๋ผ๋„ ๋ณ„๋„์˜ ์—๋Ÿฌ ์‘๋‹ต์„ ๋ณด๋‚ด์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

gat ๋ช…๋ น์–ด๋Š” ๋‚ด๋ถ€์ ์œผ๋กœ get -> touch(setattr) ์ˆœ์„œ๋กœ ๋™์ž‘ํ•˜๋ฉฐ,
CLIENT_ERROR๋‚˜ SERVER_ERROR์™€ ๊ฐ™์€ ์˜ˆ์™ธ์ ์ธ ๊ฒฝ์šฐ๋ฅผ ์ œ์™ธํ•˜๋ฉด, ๋‹ค์Œ๊ณผ ๊ฐ™์€ ์ƒํ™ฉ์—์„œ ์‹คํŒจํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

  • get ๊ณผ์ •์—์„œ ์‹คํŒจํ•œ ๊ฒฝ์šฐ (์˜ˆ: ์บ์‹œ ๋ฏธ์Šค, ํƒ€์ž… ๋ถˆ์ผ์น˜)
  • get์€ ์„ฑ๊ณตํ–ˆ์ง€๋งŒ, ์ดํ›„ touch(setattr) ๊ณผ์ •์—์„œ ์‹คํŒจํ•œ ๊ฒฝ์šฐ

์ด ์ค‘ replication์ด๋‚˜ migration ๊ด€๋ จ ์ด์Šˆ๋กœ ์ธํ•œ ์‹คํŒจ๋Š” ๋‘ ๋ฒˆ์งธ ๊ฒฝ์šฐ์— ํ•ด๋‹นํ•˜๋ฉฐ,
์ด ๊ฒฝ์šฐ์—๋„ ์„œ๋ฒ„๋Š” ํ•ด๋‹น ํ‚ค์— ๋Œ€ํ•ด ๋ณ„๋„์˜ ์‘๋‹ต์„ ๋ณด๋‚ด์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

์ด๋Š” gat ์—ฐ์‚ฐ์ด ๊ธฐ์กด get ์—ฐ์‚ฐ์˜ ๋กœ์ง์„ ๊ทธ๋Œ€๋กœ ํ™œ์šฉํ•˜๋ฉด์„œ ์œ ์‚ฌํ•œ ๋ฐฉ์‹์œผ๋กœ ๋™์ž‘ํ•˜๋„๋ก ๊ตฌํ˜„๋˜์—ˆ๊ธฐ ๋•Œ๋ฌธ์ž…๋‹ˆ๋‹ค.
๊ธฐ์กด์˜ get ์—ฐ์‚ฐ ๋˜ํ•œ ์‹คํŒจํ•˜๋”๋ผ๋„ ๋ณ„๋„์˜ ์—๋Ÿฌ ๋ฉ”์‹œ์ง€๋ฅผ ๊ตฌ์„ฑํ•˜์ง€ ์•Š๊ณ , ํ•ด๋‹น ํ‚ค๋ฅผ ์‘๋‹ต์—์„œ ์ œ์™ธํ•˜๋Š” ๋ฐฉ์‹์œผ๋กœ ์ฒ˜๋ฆฌ๋ฉ๋‹ˆ๋‹ค.

์ฆ‰, ๊ธฐ์กด get ์—ฐ์‚ฐ ์—ญ์‹œ ํ•ด๋‹น ์•„์ดํ…œ์ด ์บ์‹œ ๋ฏธ์Šค๋กœ ์‹คํŒจํ–ˆ๋Š”์ง€, ํƒ€์ž… ๋ถˆ์ผ์น˜๋กœ ์‹คํŒจํ–ˆ๋Š”์ง€์— ๋Œ€ํ•œ ๊ตฌ๋ถ„ ์—†์ด ์ฒ˜๋ฆฌ๋ฉ๋‹ˆ๋‹ค.
gat ์—ฐ์‚ฐ๋„ ๋งˆ์ฐฌ๊ฐ€์ง€๋กœ, ์—ฐ์‚ฐ ๊ณผ์ •์—์„œ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•˜๋”๋ผ๋„ ํ•ด๋‹น ์•„์ดํ…œ์— ๋Œ€ํ•ด์„œ๋Š” ๋‹จ์ˆœํžˆ ๊ฒฐ๊ณผ์—์„œ ์ œ์™ธํ•˜๋Š” ๋ฐฉ์‹์œผ๋กœ ๊ตฌํ˜„๋œ ๊ฒƒ์œผ๋กœ ๊ธฐ์–ตํ•ฉ๋‹ˆ๋‹ค.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants