示例#1
0
 /// <summary>
 /// Make room in the cache by shuffling percentage tuples out of the cache.
 /// It is sometimes handy to do so, for example, when your application is stream-based
 /// and you process each tuple as it arrives and still need a limited look-back.
 /// This percentage can be set between 0 to 100. Making shuffle= 100% (default)
 /// leads to paging behavior, while shuffle==1 leads to a sliding window over a
 /// tuple stream with 1% refreshing.
 /// </summary>
 /// <param name="hdl"></param>
 /// <param name="percentage"></param>
 /// <returns></returns>
 public static MapiMsg MapiCacheShuffle(MapiHdl hdl, int percentage)
 {
     return(new MapiMsg(CMapiLib.mapi_cache_shuffle(hdl.Ptr, percentage)));
 }