DeleteMsgCronController.class.php 603 Bytes
<?php
/**
 * 删除特定缓存信息
 */

namespace Frontend\Controller\Temp;

use Common\Common\Cache;

class DeleteMsgCronController extends AbstractController
{

    public function before_action($action = '')
    {
        if (!parent::before_action($action)) {
            return false;
        }

        return true;
    }

    public function Index()
    {
        // 实例化缓存
        $cache = &Cache::instance();

        // 删除缓存
        $cache->set('Common.Exam_131', []);

        $data = $cache->get('Common.Exam_131');

        print_r($data);

        return true;
    }
}