Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Global cache expiration period #547

Open
a7mdfre7at opened this issue Aug 26, 2024 · 0 comments
Open

Global cache expiration period #547

a7mdfre7at opened this issue Aug 26, 2024 · 0 comments

Comments

@a7mdfre7at
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant