Syrilium.Caching 1.0.4.40084

Easy and seamless caching implementation of any virtual method in any class.

Install-Package Syrilium.Caching -Version 1.0.4.40084
dotnet add package Syrilium.Caching --version 1.0.4.40084
paket add Syrilium.Caching --version 1.0.4.40084
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
  • added an ability to group and cache/clear multiple methods by key

      public T Exec<T>(Expression<Func<T>> mtd, out string key, string groupKey = null);
      public T Exec<T>(Expression<Func<T>> mtd, string groupKey);
      var rez = Cache.Exec(() => Method(param1, param2), "Key");
    
      public ICache AppendClearBuffer<T>(Expression<Action<T>> method, bool exactMethodCall = true, bool exactType = true);
      Cache.AppendClearBuffer<SomeClass>(c => c.Method(param1, param2)).Clear();
    
      public ICache AppendClearBufferKey(string key);
      Cache.AppendClearBufferKey("Key").Clear();
    
      public string GenerateKey(LambdaExpression mtd);
      public string GenerateKey<T>(Expression<Action<T>> mtd);
      public string GenerateKey(Expression<Action> mtd);
      public void AssociateGroupKey<T>(Expression<Action<T>> mtd, string groupKey);
      public void AssociateGroupKey(Expression<Action> mtd, string groupKey);
      public void AssociateGroupKey(LambdaExpression mtd, string groupKey);
      public void AssociateGroupKey(string key, string groupKey);
    
  • added an ability to group and cache/clear multiple methods by key

      public T Exec<T>(Expression<Func<T>> mtd, out string key, string groupKey = null);
      public T Exec<T>(Expression<Func<T>> mtd, string groupKey);
      var rez = Cache.Exec(() => Method(param1, param2), "Key");
    
      public ICache AppendClearBuffer<T>(Expression<Action<T>> method, bool exactMethodCall = true, bool exactType = true);
      Cache.AppendClearBuffer<SomeClass>(c => c.Method(param1, param2)).Clear();
    
      public ICache AppendClearBufferKey(string key);
      Cache.AppendClearBufferKey("Key").Clear();
    
      public string GenerateKey(LambdaExpression mtd);
      public string GenerateKey<T>(Expression<Action<T>> mtd);
      public string GenerateKey(Expression<Action> mtd);
      public void AssociateGroupKey<T>(Expression<Action<T>> mtd, string groupKey);
      public void AssociateGroupKey(Expression<Action> mtd, string groupKey);
      public void AssociateGroupKey(LambdaExpression mtd, string groupKey);
      public void AssociateGroupKey(string key, string groupKey);
    

Dependencies

This package has no dependencies.

Version History

Version Downloads Last updated
1.0.4.40084 110 4/2/2018
1.0.2.34943 154 4/13/2017
1.0.2.30077 120 4/4/2017
1.0.1.30387 486 2/25/2015
1.0.1.22157 371 2/19/2015
1.0.0.29743 321 2/18/2015
1.0.0.27660 385 2/18/2015
1.0.0.21882 187 2/19/2015
1.0.0 492 2/18/2015