示例#1
0
        public void non_default_fill()
        {
            var count = 0;

            cache.OnMissing = key => ++ count;

            cache.FillDefault("number");
            cache["number"].ShouldEqual(1);

            cache.Fill("diff", key => 1000);

            cache["diff"].ShouldEqual(1000);
        }
示例#2
0
 public void AddEventType(Type eventType)
 {
     _events.FillDefault(eventType);
 }