Example #1
0
 public LanguageOrderCache(ICacheBuilder cacheBuilder)
 {
     cacheData = cacheBuilder.BuildCache <Language, Guid, int>(i => i.Id, i => i.OrderNumber ?? int.MaxValue);
 }
Example #2
0
 public LanguageCache(ICacheBuilder cacheBuilder)
 {
     cacheData = cacheBuilder.BuildCache <Language, string, Guid>(i => i.Code, i => i.Id);
 }
Example #3
0
 public PublishingStatusCache(ICacheBuilder cacheBuilder)
 {
     cacheData = cacheBuilder.BuildCache <PublishingStatusType, string, Guid>(i => i.Code, i => i.Id);
 }