Added index to mongodb expiration field, Fixed test cases #418
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.yaml
file, enhancements to theMongoDbCache
andDynamoDbCache
classes, 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_utcnow
method, and updating test configurations.GitHub Workflows:
.github/workflows/tests.yaml
..github/workflows/tests.yaml
.Cache Enhancements:
MongoDbCache
to improve performance insrc/cachelib/mongodb.py
._utcnow
method to usedatetime.UTC
if available insrc/cachelib/dynamodb.py
andsrc/cachelib/mongodb.py
. [1] [2]Test Improvements:
redis_server
andmemcached_server
fixtures 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.1
inCHANGES.rst
andsrc/cachelib/__init__.py
. [1] [2]uwsgi
from2.0.24
to2.0.28
inrequirements/tests.txt
.tox
environments intox.ini
.Checklist:
CHANGES.rst
summarizing the change and linking to the issue... versionchanged::
entries in any relevant code docs.pre-commit
hooks and fix any issues.pytest
andtox
, no tests failed.