The invention provides an universal game-equilibrium semantic cache algorithm. Based on a Nash equilibrium mechanism, parameter expressions of three factors, namely semantics, time and location, are designed, analyzed and calculated, a game equilibrium point is found, a game-equilibrium equation is built, and the covariance coefficient of the relation role is calculated so as to obtain the universal game-equilibrium semantic cache algorithm; the semantic cache algorithm can be extended to the multifactor proportional change, also can be extended to any finite dimension, and can be widely applied to various mobile sensor database systems. How do limited mobile device resources deal with a large number of mobile user query services from a distributed database is an important issue. When a basic semantic cache technology is applied to query optimization of a sensor database, the existing method does not consider numerous reality multidimensional constraints, and therefore such the important issue is still a key and difficult issue in the semantic caching technology.