Oct 26, 2016
Dec 05, 2016
CMS Core
Closed, Fixed and tested
The documentation states that it is possible to send NULL as cache evication policy to get the default policy :
The function to invoke for determining the cache eviction policy in case a new value was retrieved. It can be null in which case a default policy is used.
But when sending NULL, nothing is cached. The documentation only states that returning a NULL value causes nothing to be cached. We should fix this for compatibility. Maybe adding an overload that does not take CacheEvictionPolicy would clarify that fact that you should not send NULL or return NULL if you just want the default behavior.