private static function clearCache($id){
Redis::del(self::getCacheKey($id));
}
/**
* when save, should clear cache
* @param array $options
*/
public function save(array $options = []){
static::clearCache($this[$this->primaryKey]);
return parent::save($options);
}
// delete 方法我暂时写,内容类似 save 方法