Skip to content

Best method for deleting keys/values? #20

@rduke1982

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.

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