摘要: Purpose The good point over the SimpleFactory is you can subclass it to implement different ways to create objects. For simple cases, this abstract cl 阅读全文
posted @ 2019-05-07 16:09 Victor!!!! 阅读(159) 评论(0) 推荐(0)
摘要: Purpose: Builder is an interface that build parts of a complex object. Sometimes, if the builder has a better knowledge of what it builds, this interf 阅读全文
posted @ 2019-05-07 15:57 Victor!!!! 阅读(155) 评论(0) 推荐(0)
摘要: Creational Creational Design Patterns are design patterns that deal with object creation mechanisms, trying to create objects in a manner suitable to 阅读全文
posted @ 2019-05-07 15:05 Victor!!!! 阅读(129) 评论(0) 推荐(0)
摘要: To Start working with DateTime, convert raw date and time string to an object with createFromFormat() factory method or do new DateTime to get the cur 阅读全文
posted @ 2019-05-07 11:32 Victor!!!! 阅读(232) 评论(0) 推荐(0)
摘要: PHP supports first-class functions, meaning that a function can be assigned to a variable. Both user-defined and built-in functions can be referenced 阅读全文
posted @ 2019-05-05 16:20 Victor!!!! 阅读(116) 评论(0) 推荐(0)
摘要: 金融的本质: 金融就是跨期价值交换,就是在双方之间进行的跨越时间的交易。所有的跨期价值交换都是金融,都是金融要解决的问题。借贷是交易两方的跨期价值互换,股票和保险等其他金融产品也是如此。 货币: 货币是人类最早,最基本,最普遍的金融品种,是跨越时间的价值载体,是货币使用人和发行方(一般为中央银行)之 阅读全文
posted @ 2019-05-05 14:48 Victor!!!! 阅读(564) 评论(0) 推荐(0)
摘要: 首先,需要创建一个类来集成Facade类 <?php namespace App\Facades\GeoIP\Facade; use Illuminate\Support\Facades\Facade; class GeoIP extends Facade { protected static fu 阅读全文
posted @ 2019-05-05 14:47 Victor!!!! 阅读(215) 评论(0) 推荐(0)
摘要: Refer this article: https://aws.amazon.com/blogs/security/how-to-automatically-update-your-security-groups-for-amazon-cloudfront-and-aws-waf-by-using- 阅读全文
posted @ 2019-05-05 14:46 Victor!!!! 阅读(151) 评论(0) 推荐(0)
摘要: Facade是容器中的类的静态代理,可以调用容器中任何对象的任何方法。 Route::get(‘/cache’, function(){ return Cache::get(‘key’); }); 要使用Facade,首先需要继承‘Illuminate\Support\Facades\Facade’ 阅读全文
posted @ 2019-05-05 14:46 Victor!!!! 阅读(250) 评论(0) 推荐(0)
摘要: 后台线程: InnoDB 存储引擎是多线程的模型,因此,其后台有多个不同的后台线程,负责处理不同的任务。 Master Thread: Master Thread 是一个非常核心的后台线程,主要负责将缓冲池中的数据异步刷新到磁盘,保证数据的一致性,包括脏页的刷新,合并插入缓存(Insert Buff 阅读全文
posted @ 2019-05-05 14:45 Victor!!!! 阅读(129) 评论(0) 推荐(0)