Skip to content

Add StaticLifetime singleton #515

@gpauloski

Description

@gpauloski

Describe the Request

Add a StaticLifetime singleton that will evict associated objects at the end of a program's lifetime. Using a singleton will mean that store.put('value', lifetime=StaticLifetime()) can be used anywhere.

I didn't add this in #513 because I was unsure how to handle multiple Store types used to create objects with the same StaticLifetime.

Sample Code

No response

Metadata

Metadata

Assignees

Labels

enhancementNew features or improvements to existing functionality

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions