FlyWeight
Motivation
FlyWeight
is all about storing distinct value/object for reusing, which finally reduces memory consumption during runtime. And for files like databases, it may be implemented as different way. So FlyWeight
is not a pattern with particular shape, it can be made with different approaches.