-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added cache time-to-live and overloads. Further code documentation.
- Loading branch information
Showing
7 changed files
with
249 additions
and
176 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
namespace NTDLS.FastMemoryCache | ||
{ | ||
internal class ItemToRemove | ||
{ | ||
public string Key { get; set; } | ||
public int AproximateSizeInBytes { get; set; } | ||
public bool Expired { get; set; } | ||
|
||
public ItemToRemove(string key, int aproximateSizeInBytes) | ||
{ | ||
Key = key; | ||
AproximateSizeInBytes = aproximateSizeInBytes; | ||
} | ||
|
||
public ItemToRemove(string key, int aproximateSizeInBytes, bool expired) | ||
{ | ||
Key = key; | ||
AproximateSizeInBytes = aproximateSizeInBytes; | ||
Expired = expired; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.