Exemplo n.º 1
0
        public FusionObjectCacheConfiguration(FusionAst ast)
        {
            Context   = new System.Collections.Generic.Dictionary <string, object>();
            EntryTags = new System.Collections.Generic.Dictionary <string, object>();
            Mode      = GetCacheModeFromName(ast.GetValue(new string[] { "mode" }));
            var maxLifeTimeValue = ast.GetValue(new string[] { "maximumLifetime" });

            MaximumLifeTime = maxLifeTimeValue != null && (maxLifeTimeValue is int) ? (int)maxLifeTimeValue : 0;
            EntryIdentifier = ast["entryIdentifier"];
        }
Exemplo n.º 2
0
 public FusionObjectCacheConfiguration()
 {
     Context         = new System.Collections.Generic.Dictionary <string, object>();
     EntryTags       = new System.Collections.Generic.Dictionary <string, object>();
     EntryIdentifier = new FusionAst();
 }