Apply Singleton Pattern

Use when exactly one instance of a class must exist across the entire application — such as a configuration store, connection pool, or logger — and global access to that instance is required.

jeffreytse Updated
grimoire

File contents

jeffreytse/grimoire-core commit d0af00d7e1

Frequently asked questions

npx get-skill add jeffreytse/apply-singleton-pattern