1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?php
- namespace app\dao\other;
- use app\dao\BaseDao;
- use app\model\other\Cache;
- class CacheDao extends BaseDao
- {
-
- public function setModel(): string
- {
- return Cache::class;
- }
-
- public function delectDeOverdueDbCache()
- {
- $this->getModel()->where('expire_time', '<>', 0)->where('expire_time', '<', time())->delete();
- }
- }
|