Ejemplo n.º 1
0
 static BaseCacheStruct()
 {
     try
     {
         var schema = EntitySchemaSet.InitSchema(typeof(T));
         if (schema.IncreaseStartNo > 0)
         {
             string key = string.Format(PrimaryKeyFormat, schema.EntityName);
             RedisConnectionPool.SetNo(key, schema.IncreaseStartNo);
         }
         CacheFactory.RegistUpdateNotify(new DefaultCacheStruct <T>());
     }
     catch (Exception)
     { }
 }
Ejemplo n.º 2
0
 static BaseCacheStruct()
 {
     EntitySchemaSet.InitSchema(typeof(T));
     CacheFactory.RegistUpdateNotify(new DefaultCacheStruct <T>());
 }