DummyMemoryCache.cs 543 B

123456789101112131415161718192021222324252627282930
  1. using Microsoft.Extensions.Caching.Memory;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace EVCB_OCPP.WSServer.Fake;
  8. internal class DummyMemoryCache : IMemoryCache
  9. {
  10. public ICacheEntry CreateEntry(object key)
  11. {
  12. return null;
  13. }
  14. public void Dispose()
  15. {
  16. }
  17. public void Remove(object key)
  18. {
  19. }
  20. public bool TryGetValue(object key, out object value)
  21. {
  22. value = default(object);
  23. return false;
  24. }
  25. }