dotnetcore / dotnetcore/EasyCaching

Global cache expiration period

Open
#547 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
2.1k
Forks
336
PR merge metrics
No merged PRs in 30d

Description

## 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

```csharp
_inMemoryCaching.Set("SomeKey", "SomeValue");
```
Instead of
```csharp
_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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.