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

Get Expiration. #120

Open
AxopoulosDennis opened this issue Feb 7, 2023 · 5 comments
Open

Get Expiration. #120

AxopoulosDennis opened this issue Feb 7, 2023 · 5 comments

Comments

@AxopoulosDennis
Copy link

Hey Guys.
I'm using Barrel.Current.Add(key, data, 2hours);
But when im using Barrel.Current.GetExpiration(key); It returns back that cache has been expired just now.
So it will return me utc 0 time zone for expiration but for add will register with server timezone.
Because when I want to use the data that is supposed to be expired based on GetExpiration, it's still there.

So the workaround for me it's Adding 2hours on get expiration to check for expired cached data.

Is it me that I'm doing something wrong?

@jamesmontemagno
Copy link
Owner

Which version number are you using and which of the libraries are you using?

@AxopoulosDennis
Copy link
Author

I'm using MonkeyCache.Filestore 1.6.3 with .net7. I'll try to update it on 2.0.1 and see if it is fixed on that version.

@AxopoulosDennis
Copy link
Author

Meh, eventually It is not good time to update cause i see methods have changed an I have to publish the project.

@AxopoulosDennis
Copy link
Author

I also use

Newtonsoft.Json 13.02
Restsharp 106.15.0
Plugin.Firebase 1.2.5
Plugin.Fingerprint 3.0.0
CommunityToolkit.Maui 4.00
CommunityToolkit.Mvvm 8.0.0

In case it could be a conflict or i don't know 😅.

@AxopoulosDennis
Copy link
Author

Its 10:50 am here.

image

image

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

2 participants