Skip to content
This repository has been archived by the owner on Jul 7, 2019. It is now read-only.

Fix if it is set to absolute time, unable to store the problem. #172

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renyanwei
Copy link

@renyanwei renyanwei commented Jul 29, 2017

Fix if it is set to absolute time, unable to store the problem.
GetExpiration(DateTime expiresAt) and
GetExpiration(TimeSpan validFor)
The meaning of the return is different, there is ambiguity.And Store(StoreMode mode, string key, object value, DateTime expiresAt) cannot be successfully stored。It's as if the data returned by GetExpiration (DateTime, expiresAt) is too large

Fix if it is set to absolute time, unable to store the problem.
@enyim
Copy link
Owner

enyim commented Aug 27, 2017

I don't really get the problem :(

Also, the way you have changed the GetExpires to always return a relative timestamp will cause problems with expirations > 30 days.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants