Compare commits
3 Commits
7042968141
...
61b583d313
Author | SHA1 | Date |
---|---|---|
Taşkın Özdemir | 61b583d313 | |
dependabot[bot] | dc52989895 | |
Taşkın Özdemir | b61532874e |
|
@ -39,7 +39,7 @@ jobs:
|
|||
|
||||
# Initializes the CodeQL tools for scanning.
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@v2
|
||||
uses: github/codeql-action/init@v3
|
||||
with:
|
||||
languages: ${{ matrix.language }}
|
||||
# If you wish to specify custom queries, you can do so here or in a config file.
|
||||
|
@ -50,7 +50,7 @@ jobs:
|
|||
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
||||
# If this step fails, then you should remove it and run the build manually (see below)
|
||||
- name: Autobuild
|
||||
uses: github/codeql-action/autobuild@v2
|
||||
uses: github/codeql-action/autobuild@v3
|
||||
|
||||
# ℹ️ Command-line programs to run using the OS shell.
|
||||
# 📚 https://git.io/JvXDl
|
||||
|
@ -64,5 +64,5 @@ jobs:
|
|||
# make release
|
||||
|
||||
- name: Perform CodeQL Analysis
|
||||
uses: github/codeql-action/analyze@v2
|
||||
uses: github/codeql-action/analyze@v3
|
||||
|
||||
|
|
|
@ -79,6 +79,10 @@ namespace RulesEngine.HelperFunctions
|
|||
|
||||
public T Set<T>(string key, T value, DateTimeOffset? expiry = null)
|
||||
{
|
||||
if (_config.SizeLimit < 1)
|
||||
{
|
||||
return T;
|
||||
}
|
||||
var fixedExpiry = expiry ?? DateTimeOffset.MaxValue;
|
||||
|
||||
while (_cacheDictionary.Count > _config.SizeLimit)
|
||||
|
|
Loading…
Reference in New Issue