芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/kwesioben.com/paymoney/app/Traits/ModelTraits/Cachable.php
$value) { Cache::forget(self::cacheKey($value)); } } } /** * getTableName * * @return void */ public static function getTableName() { return with(new static)->getTable(); } /** * cacheKey * * @param mixed $cacheTag * @return void */ public static function cacheKey($cacheTag = null) { if (is_null($cacheTag)) { return config('cache.prefix') . '.' . self::getTableName(); } return config('cache.prefix') . '.' . $cacheTag; } /** * cacheTimestamp * * @param mixed $timestamp * @return void */ protected static function cacheTimestamp($timestamp = null) { if (is_null($timestamp)) { return 30 * 86400; } return $timestamp; } }