コード例 #1
0
 /// <summary>
 /// VAdvantage Cache
 /// </summary>
 /// <param name="name">(table) name of the cache</param>
 /// <param name="initialCapacity">The initial number of elements that the CCache can contain.</param>
 /// <param name="expireMinutes">expire after minutes (0=no expire)</param>
 public CCache(String name, int initialCapacity, int expireMinutes)
 {
     cacheDic = new Dictionary <K, V>(initialCapacity);
     _name    = name;
     SetExpireMinutes(expireMinutes);
     CacheMgt.Get().Register(this);
 }
コード例 #2
0
 /// <summary>
 /// Cache Reset
 /// </summary>
 /// <param name="tableName">table name</param>
 /// <param name="Record_ID">record or 0 for all</param>
 /// <returns>number of records reset</returns>
 private int CacheReset(String tableName, int Record_ID)
 {
     log.Config(tableName + " - " + Record_ID);
     //cacheResetCount++;
     return(CacheMgt.Get().Reset(tableName, Record_ID));
 }