Added index to mongodb expiration field, Fixed test cases#418
Open
wangsha wants to merge 16 commits intopallets-eco:mainfrom
Open
Added index to mongodb expiration field, Fixed test cases#418wangsha wants to merge 16 commits intopallets-eco:mainfrom
wangsha wants to merge 16 commits intopallets-eco:mainfrom
Conversation
added expiration index, upgrade deprecating method
use mongodb auto expire index
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request includes several updates to the
.github/workflows/tests.yamlfile, enhancements to theMongoDbCacheandDynamoDbCacheclasses, and improvements to test cases. The most important changes include updating action versions and job steps in the GitHub workflows, adding an index for the expiration field inMongoDbCache, modifying the_utcnowmethod, and updating test configurations.GitHub Workflows:
.github/workflows/tests.yaml..github/workflows/tests.yaml.Cache Enhancements:
MongoDbCacheto improve performance insrc/cachelib/mongodb.py._utcnowmethod to usedatetime.UTCif available insrc/cachelib/dynamodb.pyandsrc/cachelib/mongodb.py. [1] [2]Test Improvements:
redis_serverandmemcached_serverfixtures and updated test cases to use default ports and setups intests/conftest.py,tests/test_interface_uniformity.py,tests/test_memcached_cache.py, andtests/test_redis_cache.py. [1] [2] [3] [4] [5] [6]tests/test_mongodb_cache.py.Version Updates:
0.13.1inCHANGES.rstandsrc/cachelib/__init__.py. [1] [2]uwsgifrom2.0.24to2.0.28inrequirements/tests.txt.toxenvironments intox.ini.Checklist:
CHANGES.rstsummarizing the change and linking to the issue... versionchanged::entries in any relevant code docs.pre-commithooks and fix any issues.pytestandtox, no tests failed.