Cache lookup routines often take an input parameter that says whether a cache miss should or should not create a new element and add it to the cache.
Cache lookup routines often take an input parameter that says whether a cache miss should or should not create a new element and add it to the cache.
缓存查询的常规方式通常是输入一个叁数到缓存,来判断缓存是否错过这个参数,如果失败就应该新建一个新的元素而且把它加入到缓存中。