# Doubt about the get function

**URL:** <https://forum.codecrafters.io/t/doubt-about-the-get-function/2807>\
**Category:** Challenges\
**Tags:** challenge:redis\
**Created:** [November 7, 2024, 4:10am UTC](https://forum.codecrafters.io/t/doubt-about-the-get-function/2807 "2024-11-07T04:10:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![shreyasganesh0](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/shreyasganesh0/32/2559_2.png) [@shreyasganesh0](https://forum.codecrafters.io/u/shreyasganesh0)\
**Post date:** [November 7, 2024, 4:10am UTC](https://forum.codecrafters.io/t/doubt-about-the-get-function/2807/1 "2024-11-07T04:10:36Z")

</div>

I’m stuck on Stage #gc6.

i was wondering if the we have to preload the key values from the rdb file and get any value stored in the keys provded by the keys in the rdb file

---

<div class="post-metadata">

**Author:** ![andy1li](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/andy1li/32/10_2.png) [@andy1li](https://forum.codecrafters.io/u/andy1li)\
**Post date:** [November 7, 2024, 4:22am UTC](https://forum.codecrafters.io/t/doubt-about-the-get-function/2807/2 "2024-11-07T04:22:01Z")

</div>

Yes, the stages in the RDB Persistence extension are designed to guide you through reading various types of data from an RDB file.

If you have any specific questions about them or run into issues, feel free to discuss them here!

---

<div class="post-metadata">

**Author:** ![shreyasganesh0](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/shreyasganesh0/32/2559_2.png) [@shreyasganesh0](https://forum.codecrafters.io/u/shreyasganesh0)\
**Post date:** [November 7, 2024, 4:59am UTC](https://forum.codecrafters.io/t/doubt-about-the-get-function/2807/3 "2024-11-07T04:59:55Z")

</div>

So if my understanding is correct the rdb file basically "SET"s the keys similar to the set command?

---

<div class="post-metadata">

**Author:** ![andy1li](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/andy1li/32/10_2.png) [@andy1li](https://forum.codecrafters.io/u/andy1li)\
**Post date:** [November 7, 2024, 5:18am UTC](https://forum.codecrafters.io/t/doubt-about-the-get-function/2807/4 "2024-11-07T05:18:12Z")

</div>

Yep, that’s correct! Reading an RDB file is essentially restoring data back into the database.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/3X/7/0/700657133935c15703e22c7c8870394f6e6dc27d.svg) [@system](https://forum.codecrafters.io/u/system)\
**Post date:** [November 12, 2024, 5:19am UTC](https://forum.codecrafters.io/t/doubt-about-the-get-function/2807/5 "2024-11-12T05:19:06Z")

</div>

Closed on November 12, 2024, 5:19am UTC

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.
