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

Best method for deleting keys/values? #20

Open
rduke1982 opened this issue Nov 1, 2023 · 1 comment
Open

Best method for deleting keys/values? #20

rduke1982 opened this issue Nov 1, 2023 · 1 comment

Comments

@rduke1982
Copy link

I'm using keys temporarily. To avoid having them pile up in the memory, I want to delete them once I'm done. I'm not sure how.

Would setting to "nil" work?

i.e.,

defsave.set("name", "keys", { v1 = nil, v2 = nil })

They keys are part of a file called "upgrades". The saved values are the costs. Once the object is upgraded, saving the costs is no longer necessary.

Additionally, how would the process work for deleting a key (not values) from memory? Maybe that would be an easier approach.

@subsoap
Copy link
Owner

subsoap commented Nov 2, 2023

nil will work for both!

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

No branches or pull requests

2 participants