add util class to support APC and APCu