public void AddOrUpdate(GrainId key, TValue value, int version)
        {
            var entry = new GrainDirectoryCacheEntry(value, version, DateTime.UtcNow, initialExpirationTimer);

            // Notice that LRU should know how to throw the oldest entry if the cache is full
            cache.Add(key, entry);
        }
Beispiel #2
0
        public void AddOrUpdate(GrainId key, IReadOnlyList <Tuple <SiloAddress, ActivationId> > value, int version)
        {
            var entry = new GrainDirectoryCacheEntry(value, version, DateTime.UtcNow, initialExpirationTimer);

            // Notice that LRU should know how to throw the oldest entry if the cache is full
            cache.Add(key, entry);
        }
        public void AddOrUpdate(ActivationAddress value, int version)
        {
            var entry = new GrainDirectoryCacheEntry(value, version, initialExpirationTimer);

            // Notice that LRU should know how to throw the oldest entry if the cache is full
            cache.Add(value.Grain, entry);
        }