The invention relates to a data caching achieving method. The method includes the steps that firstly,
data information in caches is acquired by an application program through data
middleware; secondly, when data are modified through the application program, the data in a
database are written in through the data
middleware, and data in the caches are updated at the same time; thirdly, an updating cycle is acquired by the data
middleware through configuration information; fourthly, the data in the caches are regularly updated by the data middleware according to the updating cycle to keep the data in the caches assistant with the data in the
database. The data caching achieving method improves the response speed of data reading and
system performance, effectively achieves the consistency of the data in the caches and the data in the
database and the purposes of guaranteeing
data consistency and improving
system performance within a certain period of time, reduces the number of times of the occasions that a
system has the request of calling the database, and reduces performance expenses for database calling.