Allow to give a type of APC cache to clear

Add documentation

Fix type argument as last argument

Fix order in unit test