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

Don't cast cas to uint. #163

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ IStoreOperation IOperationFactory.Store(StoreMode mode, string key, CacheItem va
if (cas == 0)
return new StoreOperation(mode, key, value, expires);

return new CasOperation(key, value, expires, (uint)cas);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does unit test is required for this change?

return new CasOperation(key, value, expires, cas);
}

IDeleteOperation IOperationFactory.Delete(string key, ulong cas)
Expand Down