Skip to content

Get Expiration. #120

@AxopoulosDennis

Description

@AxopoulosDennis

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions