EasyCaching icon indicating copy to clipboard operation
EasyCaching copied to clipboard

Global cache expiration period

Open a7mdfre7at opened this issue 1 year ago • 0 comments

Description

I want to set all cache items expiration globally in my project, but not pass the expiry in the Set or Get methods

Related code

_inMemoryCaching.Set("SomeKey", "SomeValue");

Instead of

_inMemoryCaching.Set("SomeKey", "SomeValue", TimeSpan.FromMinutes(5));

the same for Get

Expected behavior: Get the expiry from EasyCaching configs

Actual behavior: There is no way to get the global expiration period from congfis

Specifications

  • Provider : InMemory (version 0.2.0)
  • Serializer : msgpack
  • System : Windows 11

a7mdfre7at avatar Aug 26 '24 11:08 a7mdfre7at