Context:

See Flyweight.

Challenge:

To prevent redundant deletion and creation of often-used Resources (regardless of whether used at the moment).

Skill:

Participants:

See Flyweight.

Caching Strategy:

A function object used to decide the fate of an unused Resource. Configurable during runtime.

Signature:

Flyweight contains Caching Strategy. (See Also Flyweight.) The flyweight is unlikely to reference the strategy, since it may contain data.

Used patterns and idioms:

Strategy, (See also Flyweight.).

Scope:

General (system programming).