<?php
 namespace Module\Paper\Util; use ModStart\Core\Dao\ModelUtil; use Module\Vendor\Cache\CacheUtil; class PaperCategoryUtil { const CACHE_PREFIX = 'paperCategory:'; public static function all() { return CacheUtil::remember(self::CACHE_PREFIX . 'all', 3600, function () { return ModelUtil::all('paper_category', [], ['id', 'name'], ['sort', 'asc']); }); } }