Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
django-cache-with-mongodb
Advanced tools
Provides caching ability through MongoDB. Forked and detached from django_mongodb_cash_backend.
Install with:
$ pip install django-cache-with-mongodb
Add the following to your Django settings::
CACHES = {
'default': {
'BACKEND': 'django_cache_with_mongodb.MongoDBCache',
"LOCATION": "[mongodb://][username:password@]host1[:port1][,...hostN[:portN]][/[defaultdb][?options]]",
"OPTIONS": {
"USERNAME": "username_if_desired",
"PASSWORD": "password_if_needed",
"DATABASE": "cache_db_name", # in not supplied in URI
"COLLECTION": "cache_collection", # default: django_cache
# Any Connection Options supported by pymongo
},
"TIMEOUT": 86400, # either set TIMEOUT or MAX_ENTRIES, not both
"MAX_ENTRIES": 10000, # either set MAX_ENTRIES or TIMEOUT, not both
}
}
Location supports MongoDB Connection String. Additionally, any supported pymongo parameters could be
Any supported pymongo parameters could be added to OPTIONS.
The backend will handle TTL index creation if TIMEOUT is set, or will create a capped collection if MAX_ENTRIES is set. You should ensure that the collections are not created beforehands, so that the backend can do its work correctly.
FAQs
Provides caching ability through MongoDB. Forked and detached from django_mongodb_cash_backend.
We found that django-cache-with-mongodb demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.