예제 #1
0
 private static void Work(CacheNode node,string rootResName)
 {
     node.QueryResourceByNode(rootResName);
     node.GetAllQueriedResource();          
     node.GetResource();
     node.PostResourceFromMemory();
     node.QueryResourceByNodeAndOtherResource();
     node.GetAllQueriedResource();
     for (int i = 0; i < 20;i++ )
         node.PostResourceFromMemory(node.Name);
     node.QueryResourceByOtherResource();
     node.QueryResourceByOtherResource();
     node.QueryResourceByOtherResource();
     node.GetAllQueriedResource();
     node.PostResourceFromScratch();
     node.GetResource();
     node.ClearMemory(300);
 }
예제 #2
0
 private static void MaintanceWork(CacheNode node)
 {
     node.QueryAllOfSomeResource();
     node.GetAllQueriedResource();
     node.GetResource();
     node.PostResourceFromMemory();
     node.QueryResourceByOtherResource();
     node.GetAllQueriedResource();
     node.PostResourceFromMemory();
     node.PostResourceFromMemory();
     node.PostResourceFromMemory();
     node.PostResourceFromMemory();
     node.PostResourceFromScratch();
     node.GetResource();
     node.QueryResourceByOtherResource();
     node.GetAllQueriedResource();
     node.PostResourceFromMemory();
     node.PostResourceFromMemory();
     node.ClearMemory(500);
 }
예제 #3
0
 private static void Work(CacheNode node, string rootResName)
 {
     node.QueryResourceByNode(rootResName);
     node.GetAllQueriedResource();
     node.GetResource();
     node.PostResourceFromMemory();
     node.QueryResourceByNodeAndOtherResource();
     node.GetAllQueriedResource();
     for (int i = 0; i < 20; i++)
     {
         node.PostResourceFromMemory(node.Name);
     }
     node.QueryResourceByOtherResource();
     node.QueryResourceByOtherResource();
     node.QueryResourceByOtherResource();
     node.GetAllQueriedResource();
     node.PostResourceFromScratch();
     node.GetResource();
     node.ClearMemory(300);
 }
예제 #4
0
 private static void MaintanceWork(CacheNode node)
 {
     node.QueryAllOfSomeResource();
     node.GetAllQueriedResource();          
     node.GetResource();
     node.PostResourceFromMemory();
     node.QueryResourceByOtherResource();
     node.GetAllQueriedResource(); 
     node.PostResourceFromMemory();
     node.PostResourceFromMemory();
     node.PostResourceFromMemory();
     node.PostResourceFromMemory();
     node.PostResourceFromScratch();
     node.GetResource();
     node.QueryResourceByOtherResource();              
     node.GetAllQueriedResource(); 
     node.PostResourceFromMemory();
     node.PostResourceFromMemory();
     node.ClearMemory(500);
 }