The proxy design pattern also has possibilities for adding caching and some content validation, making it a good solution even when all content is loaded from the same server.
代理设计模式也可添加缓存和一些内容验证,因此在所有内容均加载自同一服务器时,这是一种不错的解决方案。
It was applied to solve several different problems and, along with the proxy pattern, became a core project metaphor that was often discussed in design sessions.
它与代理模式一起被用来解决几种不同的问题,并成为设计会议中常常讨论的一项核心项目课题。
I'm willing to bet you've used this pattern in some form or another, but may never have referred to your design as a proxy pattern.
我敢打赌,您肯定用过这种模式,只不过从没有称您的设计为代理模式。
应用推荐