摘要 |
<p>The present invention is applicable to the technical field of computers, and provided are a method and device for setting a working mode of a Cache. The method comprises: acquiring an IO characteristic of an upper-layer service application; finding configuration information about an optimal working mode of the Cache matching the IO characteristic from an optimal mode database; and setting a working mode of the Cache according to the configuration information about the optimal working mode of the Cache. In the present invention, after acquiring the IO characteristic of a current service application, searching an optimal mode database, according to the IO characteristic, to find configuration information about an optimal working mode of the Cache corresponding to the IO characteristic, and setting a working mode of the Cache according to configuration information about the optimal working mode of the Cache without the need for manual intervention, thus realizing intelligent and automatic adaptation of the working mode of the Cache and improving the real-time performance and maintainability of setting the working mode of the Cache.</p> |