Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement db.Erase(Key) for memoria. #7

Open
0xnullifier opened this issue Dec 15, 2024 · 0 comments
Open

Implement db.Erase(Key) for memoria. #7

0xnullifier opened this issue Dec 15, 2024 · 0 comments
Labels
easy This easy solve this if you are a beginner! enhancement New feature or request

Comments

@0xnullifier
Copy link
Collaborator

0xnullifier commented Dec 15, 2024

Currently only Read and Write functionality are there in memoria. This issue implements a new feature of Erase which is as simple as it sounds just remove the key, value pair.

Yes just simply remove the file form file system using the os package! remember to remove all the directories in the PathKey for the key.

This problem is marked Easy for the naive implementation i.e no error handling. with proper error handling you get points for Medium

NOTE : always lock the mutex and defer unlock the mutex when doing any file i/o in memoria

@0xnullifier 0xnullifier added enhancement New feature or request easy This easy solve this if you are a beginner! medium Oh you have some experience with programming huh! Come on solve this then labels Dec 15, 2024
@0xnullifier 0xnullifier changed the title Implement db.Erase() for memoria. Implement db.Erase(Key) for memoria. Dec 15, 2024
@0xnullifier 0xnullifier removed the medium Oh you have some experience with programming huh! Come on solve this then label Dec 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
easy This easy solve this if you are a beginner! enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant