芝麻web文件管理V1.00
编辑当前文件:/home/freeclou/optimyar/wp-content/plugins/wp-statistics/src/Traits/TransientCacheTrait.php
getCacheKey($input); return get_transient($cacheKey); } /** * Set the cached result for the given input. * * @param string $input * @param mixed $result * @param int $expiration Expiration time for the cache in seconds. * * @return bool */ public function setCachedResult($input, $result, $expiration = DAY_IN_SECONDS) { $cacheKey = $this->getCacheKey($input); return set_transient($cacheKey, $result, $expiration); } /** * Clear the cached result for the given input. * * @param string $input * * @return bool */ protected function clearCachedResult($input) { $cacheKey = $this->getCacheKey($input); return delete_transient($cacheKey); } }