University of Applied Sciences in Frankfurt: - Agenda for 18.June 2012

Damir Dobric Posts

Next talks:

 

    

Follow me on Twitter: #ddobric



 

 

Archives

image

image    image
image    image
image    image
image    image
image    image
image    image
image    image

 

      DataCacheFactory dcf = new DataCacheFactory();           

            DataCache cache= dcf.GetCache(cCacheName); 

            List<DataCacheTag> tags = new List<DataCacheTag>();
 

            tags.Add(new DataCacheTag("key1"));
            tags.Add(new DataCacheTag("key2"));
            tags.Add(new DataCacheTag("key3"));
 

            bool isCreated = ucdCache.CreateRegion("RegionName");
 

            IEnumerable<KeyValuePair<string, object>> items;
 

            items = cache.GetObjectsByTag(new DataCacheTag("nosuchtag"), "RegionName");
 

            items = cache.GetObjectsByTag(tags.First(), "RegionName");
            if (items.Count() > 0)
                cache.ClearRegion("RegionName");
           

            DataCacheItemVersion ver2 = cache.Add("Tagged", 123, tags, "Company2Customer2");

            cache.Add("Tagged1", 123, tags, "RegionName");
            cache.Put("Tagged1", 123, tags, "RegionName");
            cache.Add("Tagged2", 456, new List<DataCacheTag>() { tags.First() }, "RegionName");
            cache.Add("Tagged3", 789, new List<DataCacheTag>() { tags.Last() }, "RegionName");

 

           

            cache.GetObjectsByTag(tags.First(), "RegionName").ForEach(i => Console.WriteLine(i));



NOTE: array.ForEach() is provided by daenet.system.dll. It is not contained in .NET framework!


imageimageimage
imageimageimage
image

 

Download Presentation: http://developers.de/media/p/317742.aspx

Next Session: https://maps.google.com/maps?q=Microsoft+Bad+Homburg,+Siemensstra%C3%9Fe,+Bad+Homburg,+Deutschland&hl=en&ie=UTF8&ll=50.216637,8.615749&spn=0.006824,0.012553&sll=49.593567,7.75526&sspn=0.884833,1.60675&oq=microsoft+bad+homburg+siemens&t=h&hq=Microsoft&hnear=Siemensstra%C3%9Fe,+Bad+Homburg+61352+Bad+Homburg,+Hessen,+Germany&z=16

 

Microsoft GmbH

Siemensstraße 27

61352 Bad Homburg vor der Höhe, Germany

Get directions

06172 661-0


Posted Jun 16 2012, 08:04 PM by Damir Dobric
developers.de is a .Net Community Blog powered by daenet GmbH.