Skip to content

Destructors ? #3

@stuaxo

Description

@stuaxo

Hi,
I'm using kids.cache to cache some objects I create, but can't work out how to use destructors properly.

I tried adding del but this seems to get called when every instance is destroyed, is there a way to get called just when the cached instance is destroyed (ie when cache is cleared, or usually atexit I guess) ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions