[FAB-14845] extract functions to package level
[FAB-14845] extract functions to package level

The two inline functions declared within CacheConfiguration did not
close around any data so make them unexported package level functions.

Change-Id: Ifdeab047295353e1f2b03bc924169535c0785ab8
Signed-off-by: Matthew Sykes <89c6e4c9c1046731a9c37abefc223a83de36a5d9@us.ibm.com>

manish-sethi/fabric-sidedb,manish-sethi/fabric-sidedb,manish-sethi/fabric-sidedb,binhn/fabric,stemlending/fabric,binhn/fabric,manish-sethi/fabric,stemlending/fabric,jimthematrix/fabric,stemlending/fabric,manish-sethi/fabric-sidedb,jimthematrix/fabric,binhn/fabric,manish-sethi/fabric-sidedb,muralisrini/fabric,manish-sethi/fabric-sidedb,muralisrini/fabric,hyperledger/fabric,muralisrini/fabric,hyperledger/fabric,manish-sethi/fabric,manish-sethi/fabric-sidedb,stemlending/fabric