create Object Cache
Create cache for an entity type.
If you don't want all entity types to support object caching, you can check the parameters and return null in some cases
Return
Cache object or null
Parameters
type
The entity type
See also
Chain Cache Builder