Most caches are implemented using the Singleton pattern involving a static reference to a top level Cache class as shown in this example.

  • 使用Singleton模式实现的大多数缓存都涉及本例所示的对顶级Cache类的静态引用。
  • 来源:互联网摘选更新时间:2026-07-01 16:07:45

  • 重点词汇
  • implementedv.实现( implement的过去式和过去分词 );执行;贯彻;使生效;
  • asadv. 同样地,一样地; (比较时用)像…一样,如同;(指事情以同样的方式发生)和…一样
  • reference to提到;
  • usingv.使用( use的现在分词 );利用;耗费;吸(毒);
  • cachen.藏物处;隐藏处;藏匿的珍宝;<电脑>快速缓冲贮存区;
  • staticadj.静止的;不变的;静电的;[物]静力的;
  • thispron.这,这个;这事,这人;这时;下面所说的事;
  • singletonn.一个,独身,单独;
  • 相关例句
1、

Create two methods for the Singleton Pattern: The constructor is private, and there is one public method called getInstance().

为Singleton模式创建两个方法:构造函数是私有的,且有一个公有的方法,称为getInstance()。

互联网摘选

2、

However, the project had two closely related scenarios where the singleton pattern proved useful: for logging and exception handling.

不过本项目中有两个紧密相关的场景可以证明独立模式是有用的:可以用于日志记录和异常处理。

互联网摘选

3、

Drag and drop the Singleton Pattern instance from the Pattern Explorer into the UML Class Diagram view.

将Singleton模式实例从模式浏览器中拖拽到UML类图视图中。

互联网摘选

4、

As its name suggests, the Singleton Pattern is typically used when you want only one instance of a particular class.

如其名称所暗示的,当您想要特别类的仅仅一个实例时,才使用Singleton模式。

互联网摘选

5、

The framework adopts object broker in singleton pattern to implement data access, effectively enhances the efficiency of connection;

框架采用了单实例的对象代理来实现数掘访问,有效地提高了连接操作的效率;

互联网摘选

6、

Create a private attribute for the Singleton Pattern called_instance.

为Singleton模式创建私有属性,称为instance。

互联网摘选

7、

The singleton pattern can be used to delay the initialization of an object as long as possible.

单元素模式可以用来尽可能久地延迟对象的初始化。

互联网摘选

8、

This is a standard PHP singleton pattern.

这是一个标准的PHP单元素模式。

互联网摘选

9、

Singleton pattern makes construction method of the class protected, and ensures only one instance to be created.

Singleton模式把类的构造方法隐藏在静态方法后面,保证系统中仅有1个类的实例被创建。

互联网摘选

10、

Doing so creates an instance of the Singleton Pattern in the Model Explorer.

执行此操作将会在模型浏览器中生成一个Singleton模式的实例。

互联网摘选

11、

As the name implies, this strategy is used primarily in applications that support a high degree of concurrency from a user perspective.

顾名思义,此策略主要在从用户的角度支持高度并发性的应用程序中使用。

互联网摘选

12、

The residue number system ( RNS) is a carry-free system and allows a high degree of concurrency.

余数系统(RNS)是一种并行工作机制并伴随自由进位的系统。

互联网摘选

13、

Modules with small particle size of shared memory communication, high speed, concurrency is good.

模块间采用小粒度的共享内存通讯方式,速度快,并发性好。

互联网摘选

14、

To support high-throughput and high-user-concurrency requirements in an application or subsystem, you need high database concurrency.

为了在应用程序或子系统中支持高吞吐量和高用户并发性,您需要高数据库并发性。

互联网摘选

15、

To support high database concurrency, you need to reduce database locks and hold resources for as little time as possible.

要支持高数据库并发性,则需要减少数据库锁,并尽可能缩短保持资源的时间。

互联网摘选

16、

As the storage technology has been kept improving and the computable ability of computers increased rapidly, storage system is improving to fit the needs of large scale and high concurrency. The massive growth in information storage has brought new requirement to ensure the security of information storage.

随着存储技术的不断提高和计算机计算能力的飞速发展,存储系统逐渐向大规模、高并发的方向发展,对存储系统的存储安全也提出了新的要求。

互联网摘选

17、

These problems may be business optimization suggestions, or concurrent large pressure increased significantly bring technical architecture adjustment, how to cope with high concurrency, high response, which is to continue to improve in the direction of the next step system.

这些问题可能是业务上的优化建议,或者并发量大、压力显著增大带来的技术架构方面的调整,怎么应对高并发,高响应,这是下一步系统继续改进的方向。

互联网摘选

18、

The designing and analyzing of security protocols remains a challenge for the subtlety of security goals, the uncertainty of penetrator model, the complexity of the running environment, and the high concurrency of protocol sessions.

由于协议安全属性的多样性和微妙性、攻击者模型的不确定性、协议运行环境的复杂性和协议会话的高并发性,安全协议的设计与分析至今仍是一项具有挑战性的工作。

互联网摘选

19、

First was the concurrency. Because the system would receive a large number of requests in a short time, the traditional model of one connection per thread could not cope with such a high concurrency situation.

首先是并发度,由于系统会在短时间内收到大量请求,而传统的一个连接一个线程的模式并不能应付这种高并发的情况。

互联网摘选

20、

In implementing systems with high concurrency requirements we can devise finer grained locking strategies based on the access requirements of the operations, hence reducing contention for resources.

在实现具有高并发性要求的系统时,我们可以基于操作的要求采用更细粒度的锁定策略,从而减少资源争用。

互联网摘选

  • 今日热词
  • 热门搜索

英语网英语词典(dict.25820.com)为您提供在线翻译英语词典单词大全英译汉汉译英等英语服务!可按单词字数词义分类查询。支持lj:关键词格式查询例句。

用户反馈
请选择反馈类型(可多选):
您的联系方式:
反馈内容:
提交成功 小编会尽快处理
回到顶部
点击反馈