Skip to content

Best method for deleting keys/values? #20

Description

@rduke1982

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.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions